|
![](/i/fill.gif) |
On 6/22/2010 7:20 AM, scott wrote:
>
>> I'm curious about which items you want to know more about.
>
> Mainly the property panel on the right, I suspect there is a
> ridiculously easy way to implement this in C#. My C# book only has a
> couple of chapters on the GUI stuff and only covers the basics.
>
Somewhat, .NET 2.0 added a lot of nice stuff, such as display names for
properties and the like.
Most of what you see is done with TypeConverters, which allow you to
manipulate how items are represented, and how items are edited.
Other items, such as the expansion of the property list when you change
the number of inputs on the gates is a service provider implementing the
ITypeDescriptorFilterService interface, which allows manipulation of the
property lists and such.
The less simple one is dealing with the enum classes to display
friendlier names for their values, but is still rather simple.
about 90% of what happens in the property grid is controlled by
attributes. Its an amazingly flexible control.
--
~Mike
Post a reply to this message
|
![](/i/fill.gif) |