Xceed Toolkit Plus for WPF v4.6 Documentation
CreateFilter Method


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit.PropertyGrid Namespace > PropertyGrid Class : CreateFilter Method
Override this call to control the filter applied based on the text input.
Syntax
'Declaration
 
Protected Overridable Function CreateFilter( _
   ByVal filter As String _
) As Predicate(Of Object)
'Usage
 
Dim instance As PropertyGrid
Dim filter As String
Dim value As Predicate(Of Object)
 
value = instance.CreateFilter(filter)
protected virtual Predicate<object> CreateFilter( 
   string filter
)

Parameters

filter
Remarks

You can return your own predicate filter to control which properties or items should be keeped according to the current filter value.

The filtering used will be determined by the following order:

1)      The predicate returned by the CreateFilter override.

2)     PropertiesSource or Properties mode, the value returned by the PropertyNameBinding, if specified and resolve to a string, will be use to filter the items.

3)      The DisplayName value of the PropertyItem.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PropertyGrid Class
PropertyGrid Members