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

How to usage CustomTypeEditor on PropertyGrid

Apr 28, 2011 at 10:33 PM

Hai,

Does anybody know about how to usage CustomTypeEditor on PropertyGrid ?

Apr 29, 2011 at 12:48 AM

Although there are properties for custom type editors, this functionality is not yet implemented.

Apr 29, 2011 at 10:47 AM

Okay,

means for now propertygrid not able to create custom type editors.

but I hope to be able to create a custom type editor as I needed.
so, when propertygrid support custom type editors ?

 

thanks for the attention :-)

Apr 29, 2011 at 2:28 PM

I do not have a delivery date for the PropertyGrid.  I will work on it when I have time.

Apr 29, 2011 at 4:48 PM

okay brian,

I hope wpf toolkit for better future, :-)

Sep 26, 2011 at 9:48 PM

This feature has been implemented.  You can simply define a new EditorDefinition and provide a data template for the control you wish to use as an editor:

<extToolkit:PropertyGrid>
            <extToolkit:PropertyGrid.EditorDefinitions>
                <extToolkit:EditorDefinition TargetType="{x:Type sys:DateTime}">
                    <extToolkit:EditorDefinition.EditorTemplate>
                        <DataTemplate>
                            <extToolkit:DateTimeUpDown Format="ShortDate" Value="{Binding Value}" />
                        </DataTemplate>
                    </extToolkit:EditorDefinition.EditorTemplate>
                </extToolkit:EditorDefinition>
            </extToolkit:PropertyGrid.EditorDefinitions>
</extToolkit:PropertyGrid>