how can I filter off useless property?

Grids for WPF Forum

Posted 15 years ago by saintruka
Avatar
Hi


XMAL is :

<propgrid:PropertyGrid x:Name="propGrid" IsSummaryVisible="False" />



behind code is :

foreach (UIElement ui in selectedInkCanvas.GetSelectedElements())
{
if(...)
{
propGrid.SelectedObject = ui;
}
}



Question is how can I filter off useless property?

Thank for any suggestions.

[Modified at 11/19/2008 02:36 AM]

Comments (3)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You will need to be more specific about what property (or properties) you want to filter and what logic you would like to use. But there are several methods for filtering properties and the Sample Browser includes two QuickStarts on using data filters (via the PropertyGrid.DataFilter property).

You can also quickly filter out attached properties by setting PropertyGrid.AreAttachedPropertiesBrowsable to false, or you can filter items based on the presence of one or more property attributes using PropertyGrid.BrowsableAttributes.


Actipro Software Support

Posted 15 years ago by saintruka
Avatar
Thanks a lot :-)
v4.5.0470 has no DataFilter Property.
it's very useful member.
Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
I'm sorry, I didn't realize you were running an earlier version. We added this property in version 4.5.0471 of the WPF Studio. More information on that release can be found here: http://blog.actiprosoftware.com/post/New-PropertyGrid-features-and-other-WPF-Studio-build-471-updates.aspx.


Actipro Software Support

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.