Propertygrid Custom Popup Editor via attribution

Grids for WPF Forum

Posted 10 years ago by Jack Stephenson
Version: 14.1.0602
Avatar

I am using your property editor to edit reflected types. (I dont know precisoely what type will be editted at compile time).

I have used attribution to control whether particular properties are editable.

I now want to have a custom pop-up editor for a specific property and ideally signal its use at runtime via attibution on the property.

Is this possible?

Comments (2)

Answer - Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Jack,

Yes, you can decorate properties with attributes like:

[Editor(typeof(CheckBoxPropertyEditor), typeof(PropertyEditor))]
public bool MyProperty {
...
}

So that will tell PropertyGrid to use the CheckBoxPropertyEditor for that particular property.  You could make your own as well.  Check out the "Property Editors" topic in the documentation for more info on that attribute.


Actipro Software Support

Posted 10 years ago by Jack Stephenson
Avatar

Thanks

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.