This project has moved and is read-only. For the latest updates, please go here.

PropertyGrid : Editor with [Browsable(false)]

Nov 26, 2014 at 10:28 AM

I try to define the precision of my DoubleUpDownEditor to just 3 numbers.

I've done that :
<xctk:EditorTemplateDefinition TargetProperties="{x:Type system:Double}">
                                    <xctk:DoubleUpDown Value="{Binding Value}" TextAlignment="Left" FormatString="F3" CultureInfo="en-u" BorderThickness="0"/>
It's woking perfectly but for my class properties i've decorated with [Browsable(false)] because it's not editable, the precision is not applied. Do you understand why ?
It's like if there is a specific editor for readOnly property.

Thanks a lot.
Dec 8, 2014 at 8:46 PM

When using [Browsable(false)], the property shouldn't be displayed at all. So you should not see any precision for this property.