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

PropertyGrid : Edition of CollectionControl Editors

Nov 26, 2014 at 7:39 AM
Edited Nov 26, 2014 at 7:40 AM
Hi,

I have one problem with the CollectionEditor open by the PropertyGrid.
For my propertyGrid I have redefine some template like that but it's not propagated in the CollectionEditor, so how can I edit specific editor for the CollectionEditor ?

Thanks in advance if it's possible
<xctk:PropertyGrid.EditorDefinitions>
                        
       <xctk:EditorTemplateDefinition TargetProperties="{x:Type system:DateTime}">
                <xctk:EditorTemplateDefinition.EditingTemplate>
                      <DataTemplate>
                           <xctk:DateTimePicker TextAlignment="Left" Format="LongDate"            TimePickerVisibility="Collapsed" ShowButtonSpinner="False" AutoCloseCalendar="True" BorderThickness="0"/>
                        </DataTemplate>
                  </xctk:EditorTemplateDefinition.EditingTemplate>
           </xctk:EditorTemplateDefinition>

                        
</xctk:PropertyGrid.EditorDefinitions>   
Developer
Dec 8, 2014 at 7:28 PM
Hi,

You can modify the PropertyGrid in the CollectionControl's Template. To do so, just add your "PropertyGrid.EditorDefinitions" to the PropertyGrid in the CollectionControl's Template. You will find it in :
-Xceed.Wpf.Toolkit/CollectionControl/Themes/Aero2.NormalColors.xaml (for Windows8)
-Xceed.Wpf.Toolkit/CollectionControl/Themes/Generic.xaml (for others windows)