Represents a class that provides common functionalities of HeaderCellControl in SfDataGrid.
Inheritance
System.Object
GridHeaderCellControl
Implements
System.IDisposable
Assembly: Syncfusion.SfGrid.WPF.dll
public class GridHeaderCellControl : ContentControl, IDisposable
Constructors
Declaration
public GridHeaderCellControl()
Fields
ColumnOptionsWidthProperty
Declaration
public static readonly DependencyProperty ColumnOptionsWidthProperty
Field Value
| Type |
| System.Windows.DependencyProperty |
ColumnProperty
Dependency registration for Column property.
Declaration
public static readonly DependencyProperty ColumnProperty
Field Value
| Type |
| System.Windows.DependencyProperty |
Declaration
protected SfDataGrid DataGrid
Field Value
Declaration
public static readonly DependencyProperty FilterIconVisiblityProperty
Field Value
| Type |
| System.Windows.DependencyProperty |
Gets Filter popup Control type of GridFilterControl.
Declaration
protected GridFilterControl FilterPopupHost
Field Value
Gets or sets Presenter for Filter Popup.
Declaration
protected Border FilterPopUpPresenter
Field Value
| Type |
| System.Windows.Controls.Border |
Gets or sets Filter toggle button.
Declaration
protected FilterToggleButton FilterToggleButton
Field Value
Dependency registration for SortDirection property.
Declaration
public static readonly DependencyProperty SortDirectionProperty
Field Value
| Type |
| System.Windows.DependencyProperty |
Dependeny registration for SortNumber property.
Declaration
public static readonly DependencyProperty SortNumberProperty
Field Value
| Type |
| System.Windows.DependencyProperty |
Dependency registration for SortNumberVisibility property.
Declaration
public static readonly DependencyProperty SortNumberVisibilityProperty
Field Value
| Type |
| System.Windows.DependencyProperty |
Properties
Column
Gets or sets Associated GridColumn.
Declaration
public GridColumn Column { get; set; }
Property Value
Remarks
ColumnOptionsWidth
Gets or sets ColumnOptionsWidth.
Declaration
public double ColumnOptionsWidth { get; }
Property Value
Remarks
Declaration
public Visibility FilterIconVisiblity { get; set; }
Property Value
| Type |
| System.Windows.Visibility |
Gets or sets the cell region in the SfTreeGrid.
Declaration
public GridCellRegion GridCellRegion { get; set; }
Property Value
Gets a value indicating whether the filter s applied .
Declaration
protected bool IsFilterApplied { get; }
Property Value
| Type |
Description |
| System.Boolean |
true if this instance ; otherwise, false.
|
Gets or sets Path direction (Ascending/Descending).
Declaration
public object SortDirection { get; set; }
Property Value
Gets or sets Order/Number for sort columns.
Declaration
public string SortNumber { get; }
Property Value
Gets or sets Sorting Number visibility.
Declaration
public Visibility SortNumberVisibility { get; set; }
Property Value
| Type |
| System.Windows.Visibility |
Methods
Sets the VisualState for the Filter toggle button.
Declaration
protected virtual void ApplyFilterToggleButtonVisualState()
Disposes all the resources class.
Declaration
Disposes all the resources 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.
|
Declaration
public override void OnApplyTemplate()
OnColumnChanged()
Invoked when column changed.
Declaration
protected virtual void OnColumnChanged()
Returns a class-specific AutomationPeer Implementations for the Microsoft UI Automation infrastrcutre.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
| Type |
Description |
| System.Windows.Automation.Peers.AutomationPeer |
The class-specific AutomationPeer subclass.
|
Declaration
protected override void OnLostMouseCapture(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.MouseEventArgs |
e |
|
Declaration
protected override void OnManipulationDelta(ManipulationDeltaEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.ManipulationDeltaEventArgs |
e |
|
Declaration
protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.MouseButtonEventArgs |
e |
|
Declaration
protected override void OnMouseDown(MouseButtonEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.MouseButtonEventArgs |
e |
|
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.MouseButtonEventArgs |
e |
|
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.MouseButtonEventArgs |
e |
|
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseUp(MouseButtonEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.MouseButtonEventArgs |
e |
|
Declaration
protected virtual void OnSortDirectionChanged(DependencyPropertyChangedEventArgs args)
Parameters
| Type |
Name |
Description |
| System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Declaration
protected override void OnTouchDown(TouchEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.TouchEventArgs |
e |
|
Declaration
protected override void OnTouchUp(TouchEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Input.TouchEventArgs |
e |
|
Invoked to open the Filter popup.
Declaration
protected virtual void OpenFilterPopUp()
Opens the context menu at the specified position.
Declaration
protected virtual bool ShowContextMenu()
Returns
| Type |
Description |
| System.Boolean |
true If the context menu opened;Otherwisefalse
|
Makes Sure headercell property for updation
Declaration
Update the VisualState based upon the cell region.
Declaration
public void UpdateGridHeaderCellBorderState(bool canApplyDefaultState = true)
Parameters
| Type |
Name |
Description |
| System.Boolean |
canApplyDefaultState |
|
Implements
System.IDisposable