Class CheckboxFilterControl
Represents a control that provides excel like filter interface with list of check box’s.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class CheckboxFilterControl : ContentControl, IDisposable
Constructors
CheckboxFilterControl()
Initializes a new instance of CheckboxFilterControl class.
Declaration
public CheckboxFilterControl()
Fields
HasItemsSourceProperty
Identifies the HasItemsSource dependency property.
Declaration
public static readonly DependencyProperty HasItemsSourceProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Remarks
The identifier for the HasItemsSource dependency property.
IsItemSourceLoadedProperty
Identifies the IsItemSourceLoaded dependency property.
Declaration
public static readonly DependencyProperty IsItemSourceLoadedProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Remarks
The identifier for the IsItemSourceLoaded dependency property.
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Remarks
The identifier for the ItemsSource dependency property.
ItemTemplateProperty
Identifies the ItemTemplate dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Remarks
The identifier for the ItemTemplate dependency property.
SearchOptionVisibilityProperty
Identifies the SearchOptionVisibility dependency property.
Declaration
public static readonly DependencyProperty SearchOptionVisibilityProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Remarks
The identifier for the SearchOptionVisibility dependency property.
SearchTextBlockVisibilityProperty
Identifies the SearchTextBlockVisibility dependency property.
Declaration
public static readonly DependencyProperty SearchTextBlockVisibilityProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Remarks
The identifier for the SearchTextBlockVisibility dependency property.
Properties
HasItemsSource
Gets or sets a value that indicates whether CheckboxFilterControl has ItemsSource or not.
Declaration
public bool HasItemsSource { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | true if the CheckboxFilterControl has ItemsSource; otherwise,false. The default value is false. |
IsItemSourceLoaded
Gets or sets a value that indicates whether ItemsSource is loaded in CheckboxFilterControl.
Declaration
public bool IsItemSourceLoaded { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | true if the ItemsSource is loaded in CheckboxFilterControl; otherwise,false. The default value is false. |
ItemsSource
Gets or sets the collection that is used to generate the content of the CheckboxFilterControl.
Declaration
public object ItemsSource { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The collection that is used to generate the content of the CheckboxFilterControl.The default value is null. |
ItemTemplate
Gets or sets the template that is used to display the items in CheckBoxFilterControl.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.DataTemplate | The template that is used to specify the visualization of the data objects.The default value is |
Remarks
By default the CheckBoxFilterControl shows the items with List of Checkboxes.
SearchOptionVisibility
Gets or sets a value indicating the SearchOption Visibility.
Declaration
public Visibility SearchOptionVisibility { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Visibility | One of the System.Windows.Visibility enumeration that specifies the visibility of SearchOption. The default mode is System.Windows.Visibility.Visible. |
SearchTextBlockVisibility
Gets or sets a value indicating the Search watermark Visibility.
Declaration
public Visibility SearchTextBlockVisibility { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Visibility | One of the System.Windows.Visibility enumeration that specifies the visibility of Search watermark. The default mode is System.Windows.Visibility.Visible. |
Methods
Dispose()
Disposes all the resources used by the CheckboxFilterControl class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the CheckboxFilterControl class.
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. |
OnApplyTemplate()
Builds the visual tree for the CheckboxFilterControl when a new template is applied.
Declaration
public override void OnApplyTemplate()
OnPreviewKeyDown(KeyEventArgs)
Occurs when the PreviewKeyDown attached event reaches an element in its route that is derived from this class.
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.KeyEventArgs | e | The System.Windows.Input.KeyEventArgs that contains the event data. |
OnPropertyChanged(String)
Invoked when PropertyChanged event occurs.
Declaration
public void OnPropertyChanged(string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | propertyName | The corresponding Property. |
Events
PropertyChanged
Occurs when a property value changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
|---|
| System.ComponentModel.PropertyChangedEventHandler |
SelectAllCheckBoxChecked
Occurs when the SelectAllCheckBox is checked
Declaration
public event EventHandler<SelectAllCheckBoxCheckedEventArgs> SelectAllCheckBoxChecked
Event Type
| Type |
|---|
| System.EventHandler<SelectAllCheckBoxCheckedEventArgs> |
SelectAllUnCheckBoxChecked
Occurs when the SelectAllCheckBox is unchecked
Declaration
public event EventHandler<SelectAllCheckBoxUnCheckedEventArgs> SelectAllUnCheckBoxChecked
Event Type
| Type |
|---|
| System.EventHandler<SelectAllCheckBoxUnCheckedEventArgs> |