
I was able to get BrowsableAttributes to work from code with:
List<Attribute> attrs = new List<Attribute>();
attrs.AddRange(SettingsPropertyGrid.BrowsableAttributes);
attrs.Add(new MyAttribute(true));
SettingsPropertyGrid.BrowsableAttributes = attrs;
I would like to use xaml to add attributes the same way as filters, e.g.
<propgrid:PropertyGrid.DataFilter>
<propgrid:PropertyStringFilter x:Name="stringFilter" Operation="Contains" Value="{Binding Path=Text, ElementName=searchText}" StringComparison="CurrentCultureIgnoreCase" />
</propgrid:PropertyGrid.DataFilter>
Can this be done? Can the same effect be achieved by using a new class of filter?
List<Attribute> attrs = new List<Attribute>();
attrs.AddRange(SettingsPropertyGrid.BrowsableAttributes);
attrs.Add(new MyAttribute(true));
SettingsPropertyGrid.BrowsableAttributes = attrs;
I would like to use xaml to add attributes the same way as filters, e.g.
<propgrid:PropertyGrid.DataFilter>
<propgrid:PropertyStringFilter x:Name="stringFilter" Operation="Contains" Value="{Binding Path=Text, ElementName=searchText}" StringComparison="CurrentCultureIgnoreCase" />
</propgrid:PropertyGrid.DataFilter>
Can this be done? Can the same effect be achieved by using a new class of filter?