This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, Could you please let me know how I can dynamically determine which properties are shown in the property grid? I would love to be able to use the BrowsableAttribute, but I don't know which properties to show or hide at compile-time. Thank you! |
|
|
I should mention that I've seen the following code for filtering in the documentation: ICollectionView view = CollectionViewSource.GetDefaultView(PropertyGrid1.BindingView); This is nearly what I want, but was hoping to trigger filtering based on properties of the selected object. Something like the following: <ms:PropertyGrid ...> <ms:PropertyGrid.Filter> <MultiBinding Converter="{StaticResource ConvertSomePropertiesToPredicate}"> <Binding .../> <Binding .../> ... </MultiBinding> </ms.PropertyGrid.Filter> </ms:PropertyGrid ...> Is there a way to do this sort of thing? Thanks. |
|
|
You can't currently do this from XAML. You would need to apply a new filter through code whenever the selected object changes. I will take a look at whether we can provide a bindable Filter property but the interactions with the collection view filter may be a bit odd. |
|