Xceed Toolkit Plus for WPF v4.6 Documentation
Filter Property (SelectionRange)


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.ListBox Namespace > SelectionRange Class : Filter Property

Gets the filter predicate to be used to filter the items locally (see Remarks section).

Syntax
'Declaration
 
Public ReadOnly Property Filter As Predicate(Of Object)
'Usage
 
Dim instance As SelectionRange
Dim value As Predicate(Of Object)
 
value = instance.Filter
public Predicate<object> Filter {get;}

Property Value

The filter predicated to be used to filter the items locally (see Remarks section). Can be a null reference (Nothing in Visual Basic).

Remarks

Predicates (i.e., filter parameters of various SelectionRange constructors) are executed locally, meaning that when the BeginGetSelectedItems and EndGetSelectedItems methods are called and a selection range that provides a predicate is used, items will be retrieved from the server in order to determine those that pass the filter.

If one or more start and end range information is provided and/or a filter expression, only the items that are not already excluded by the range information and filter expression will be retrieved.

In a virtualized environment, it is not recommended to use the filter predicate unless dealing with a very limited number of items.

Example

For more information and examples on selecting data, refer to the Selecting Data topic.

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

SelectionRange Class
SelectionRange Members