![Avatar](https://secure.gravatar.com/avatar/6e601900c99b06c9fdb1fe4a036f4795.jpg?s=64&d=identicon&r=g)
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?