In Visual Studio when you select project or project items in the solution explorer there are times when you might want to add custom properties to the properties window(the window that pops up when you press F4). Also, to fill in the values of those properties I need to add a button to pop up a form so I can collect information from the user at design time.
What is the simplest implementation of this so I can get started? How would I create a user interface to collect the value some how by using UITypeEditAttribute?
This is the simplest implementation I could come up with.
Since this is an advanced topic, it is implied that you feel comfortable with completing all the steps before you start the implementation(these are all common programming tasks).
If anything is not clear enough just comment and I will try to simplify. Note that this is configured to create a custom property for a Visual C# file within visual studio. When you run or debug your visual studio package followed by clicking any .cs file, the custom property should show in the properties window. The comments provided are required instructions.
Let's get started.
1. Create Package in visual studio.
Package.cs
2. Create class that implements your desired custom properties.
3. Create a class that implements the custom property interface.
4. Create class that implements [IExtenderProvider] interface and override [GetExtender] and [CanExtend] methods.
5. Create a new class that inherits from [UITypeEditor] and override [GetEditStyle] and [EditValue] methods.