How to create custom Add New Item dialog #227
Replies: 3 comments 3 replies
-
|
This is awesome stuff!!! I've never seen anyone using the You'd want you command placement to be in the Add fly-out instead of the root of the context menu, I would assume? I always use |
Beta Was this translation helpful? Give feedback.
-
|
Instead of doing the work in SolutionItem item = await VS.Solutions.GetActiveItemAsync();
item.GetItemInfo(out var hierarchy, out _, out _); |
Beta Was this translation helpful? Give feedback.
-
|
This looks so good now. Excellent job!! The latest CI build now exposes a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
At the beggining of this week I have started playing with VSIX extensions. As my first extension, I decided to create simple VSIX with some Item Templates and the context menu command that will open a Add New Item Dialog with my own category already selected.
Item templates, I have created them following guides at docs.microsoft.com.
Command was created by following VSIX Cookbook.
The tricky part was to open New Item Dialog with my category already selected. After some googling I have found this thread with solution: https://social.msdn.microsoft.com/Forums/en-US/80ca5bbb-2475-4cf7-a74d-c0bbcbbf6946/add-project-menu-option?forum=vsx. I have implememnted it with some minor tweaks and achieved what I wanted, an Add New Item Dialog with my category already selected. As the next step, I have decided to re-implement it using VSIX Tookit. This is the result:
My custom Add New Item Dialog
And my command, which is invoking it:
VSCT:
What do you thing about my implementation? This is my first attemp of creating VSIX extension.
All feedback is welcomed.
Beta Was this translation helpful? Give feedback.
All reactions