Xceed.Silverlight.Data.Controls.v2.0 Assembly > Xceed.Silverlight.Controls Namespace : FilterControl Class |
<TemplateVisualStateAttribute(Name="NotLicensed", GroupName="LicensingStates")> <TemplateVisualStateAttribute(GroupName="LicensingStates", Name="Licensed")> Public Class FilterControl Inherits System.Windows.Controls.Control
Dim instance As FilterControl
[TemplateVisualStateAttribute(Name="NotLicensed", GroupName="LicensingStates")] [TemplateVisualStateAttribute(GroupName="LicensingStates", Name="Licensed")] public class FilterControl : System.Windows.Controls.Control
The FilterControl class acts as a delaying-providing intermediary between the the SearchTextBox and the ListBox. As the end-user types in the SearchTextBox, the UIFilterExpression property is updated continuously (being bound to SearchTextBox.FilterExpression through two-way binding in the product's default templates) to contain the filter that should be applied to the data. However, the FilterControl waits for the amount of time represented by ApplyFilterInterval to pass, without any other changes being made in the SearchTextBox, before DataSourceFilterExpression (bound to ListBox.FilterExpression in the product's default templates) is updated using UIFilterExpression. The advantage of this approach is that it avoids the filter being applied to the underlying data after each keystroke. By default, the delay value is a TimeSpan representing 700 milliseconds.
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
Xceed.Silverlight.Controls.FilterControl
Target Platforms: 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