CodeProject - Rich Design Time Editing with UITypeEditors (VB.NET)
“IntroductionThis article assumes you have basic knowledge on creating a simple UserControl, so I am not going to go into much detail on creating one here. To demonstrate the Property Editors I desided to make a control that draws itself in a selected shape. This gave me lots of options to demonstrate different design time editors. This Demo uses UITypeEditors, Smart Tags, ControlDesigner Verbs, and Expandable Properties.
…
Another example of the DropDown is the
RadiusInnerTypeEditor
. It uses theDropdownRadiusInner
UserControl, which contains aTrackBar
and aShape
Control. If theShape
is a Star sliding theTrackBar
back and forth changes theRadiusInner
property value on the star shape. When you get it the way you want, Check the Apply button to callCloseDropDown
The last Dropdown is the
BlendTypeEditor
. It uses theDropdownColorBlender
UserControl, which is a slight variation on my ColorBlender UserControl[^] The UserControl may be more complex but there is very little difference in theEditValue
Method.…”
This is a great article/project on adding professional finish to a UserControl via rich design time editing features. Having all these things, UITypeEditors, Verbs, etc, in a single article is very nice. I thought the article was well written, with a good mix of images, copy and code snips.
If you’re doing UserControls and have been hesitant to provide rich propertygrid UI Type Editors because they seemed “hard”, then take a look at this…
No comments:
Post a Comment
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...