I have managed to bind the IsEnabled property of a variable displayed in a CollectionEditor by editing Xceed.Wpf.Toolkit\CollectionControl\Themes\Generic.xaml using EditorTemplateDefinition as follows:
Is there a way to achieve the IsEnabled binding but keep the default CollectionControl style?
<pg:PropertyGrid.EditorDefinitions>
<pg:EditorTemplateDefinition TargetProperties="UConstruction">
<pg:EditorTemplateDefinition.EditingTemplate>
<DataTemplate>
<TextBox Text="{Binding Value}" IsEnabled="{Binding Instance.IsUYConstruction}" />
</DataTemplate>
</pg:EditorTemplateDefinition.EditingTemplate>
</pg:EditorTemplateDefinition>
</pg:PropertyGrid.EditorDefinitions>
This, however, overwrites the default style for that row of the CollectionControl with a Textbox.Is there a way to achieve the IsEnabled binding but keep the default CollectionControl style?