This project has moved. For the latest updates, please go here.

PropertyGrid : Editor with [Browsable(false)]

Nov 26, 2014 at 9:28 AM
Hi,

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:EditorTemplateDefinition.EditingTemplate>
                                <DataTemplate>
                                    <xctk:DoubleUpDown Value="{Binding Value}" TextAlignment="Left" FormatString="F3" CultureInfo="en-u" BorderThickness="0"/>
                                </DataTemplate>
                            </xctk:EditorTemplateDefinition.EditingTemplate>
</xctk:EditorTemplateDefinition>
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.
Developer
Dec 8, 2014 at 7:46 PM
Hi,

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