Setting Dynamically CheckBoxVisibility, SpinnerVisibility et

Grids for WPF Forum

Posted 12 years ago by Eli Obadia
Version: 10.1.0523
If I am programatically (dynamically) creating a property and I'm using something like:
[Editor(typeof(NullableDoublePropertyEditor), typeof(PropertyEditor))]

How can I define the the CheckBoxVisibility and the SpinnerVisibility to be Visible
to get something like this:

<propgrideditors:NullableDoublePropertyEditor CheckBoxVisibility="Visible" SpinnerVisibility="Visible" />

The same applies for NullableDateTimePropertyEdito to set up: Format="d" or Format="t"


Comments (2)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Eli,

When using the EditorAttribute, the only thing you can pass is a type. So if you want to set certain properties, you'd have to create a custom type. Something like:
public class MyNullableDoublePropertyEditor : NullableDoublePropertyEditor {
    public MyNullableDoublePropertyEditor() {
        this.CheckBoxVisibility = Visibility.Visible;
        this.SpinnerVisibility = Visibility.Visible;

Actipro Software Support

Posted 12 years ago by Eli Obadia

The latest build of this product (v22.1.3) was released 29 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.