Class TreeGridCellCheckBoxRenderer
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.TreeGrid.Cells
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class TreeGridCellCheckBoxRenderer : TreeGridVirtualizingCellRenderer<CheckBox, CheckBox>, ITreeGridCellRenderer, IDisposable
Constructors
TreeGridCellCheckBoxRenderer()
Initializes a new instance of the
Declaration
public TreeGridCellCheckBoxRenderer()
Fields
IsCheckedProperty
Declaration
public static readonly DependencyProperty IsCheckedProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
Methods
CanUpdateBinding(TreeGridColumn)
Declaration
public override bool CanUpdateBinding(TreeGridColumn column)
Parameters
Type | Name | Description |
---|---|---|
TreeGridColumn | column |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
EndEdit(TreeDataColumnBase, Object, Boolean)
Declaration
public override bool EndEdit(TreeDataColumnBase dc, object record, bool canResetBinding = false)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dc | |
System.Object | record | |
System.Boolean | canResetBinding |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetControlValue()
Gets the control value.
Declaration
public override object GetControlValue()
Returns
Type | Description |
---|---|
System.Object |
Overrides
GetIsChecked(DependencyObject)
Gets the IsChecked attached property value of CheckBox which is bound with underlying data object.
Declaration
public static object GetIsChecked(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj |
Returns
Type | Description |
---|---|
System.Object |
Remarks
IsChecked attached property used only when GridCheckBoxColumn.IsThreeState is true.
InitializeCellStyle(TreeDataColumnBase, Object)
Initalize the Cell Style
Declaration
protected override void InitializeCellStyle(TreeDataColumnBase dataColumn, object record)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | |
System.Object | record |
Overrides
OnEditElementLoaded(Object, RoutedEventArgs)
Invoked when the edit element(CheckBox) is loaded on the cell in column.
Declaration
protected override void OnEditElementLoaded(object sender, RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
Windows.UI.Xaml.RoutedEventArgs | e | The Windows.UI.Xaml.RoutedEventArgs instance containing the event data. |
Overrides
OnEditElementUnloaded(Object, RoutedEventArgs)
Invoked when the edit element(CheckBox) is unloaded on the cell in column.
Declaration
protected override void OnEditElementUnloaded(object sender, RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
Windows.UI.Xaml.RoutedEventArgs | e | The Windows.UI.Xaml.RoutedEventArgs instance containing the event data. |
Overrides
OnInitializeEditElement(TreeDataColumnBase, CheckBox, Object)
Method which is initialize the Renderer element Bindings with corresponding column values.
Declaration
public override void OnInitializeEditElement(TreeDataColumnBase dataColumn, CheckBox uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | DataColumn Which holds GridColumn, RowColumnIndex and GridCell |
Windows.UI.Xaml.Controls.CheckBox | uiElement | Corresponding Renderer Element |
System.Object | dataContext |
Overrides
OnUnwireEditUIElement(CheckBox)
Declaration
protected override void OnUnwireEditUIElement(CheckBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Controls.CheckBox | uiElement |
Overrides
OnUpdateEditBinding(TreeDataColumnBase, CheckBox, Object)
Method which is used to update the Renderer element Bindings with corresponding column values.
Declaration
public override void OnUpdateEditBinding(TreeDataColumnBase dataColumn, CheckBox element, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | TreeDataColumn Which holds TreeGridColumn, RowColumnIndex and GridCell |
Windows.UI.Xaml.Controls.CheckBox | element | Corresponding Renderer Element |
System.Object | dataContext | dataContext of the row |
Overrides
SetControlValue(Object)
Sets the control value.
Declaration
public override void SetControlValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Overrides
SetIsChecked(DependencyObject, Object)
Sets the IsChecked attached property value of CheckBoox which is bound with underlying data object.
Declaration
public static void SetIsChecked(DependencyObject obj, object value)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | |
System.Object | value |
Remarks
IsChecked attached property used only when GridCheckBoxColumn.IsThreeState is true.
ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs)
Shoulds the grid try automatic handle key down.
Declaration
protected override bool ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.KeyRoutedEventArgs | e | The Windows.UI.Core.KeyEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
System.Boolean |