Class TreeGridCellTemplateRenderer
Represents a class that maintains the rendering of TreeGridTemplateColumn.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.TreeGrid.Renderers
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class TreeGridCellTemplateRenderer : TreeGridVirtualizingCellRenderer<ContentControl, ContentControl>, ITreeGridCellRenderer, IDisposable
Constructors
TreeGridCellTemplateRenderer()
Declaration
public TreeGridCellTemplateRenderer()
Methods
CanValidate()
Determines whether the cell validation is allowed.
Declaration
public override bool CanValidate()
Returns
Type | Description |
---|---|
System.Boolean | true if cell validation is allowed; otherwise false. |
Overrides
InitializeCellStyle(TreeDataColumnBase, Object)
Initializes the custom style for cell when the corresponding API's and Selectors are used.
Declaration
protected override void InitializeCellStyle(TreeDataColumnBase dataColumn, object record)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | The corresponding TreeDataColumnBase. |
System.Object | record | The corresponding record to initialize cell style. |
Overrides
OnArrange(RowColumnIndex, FrameworkElement, Rect)
Invoked when the visual children of cell is arranged in view.
Declaration
protected override void OnArrange(RowColumnIndex cellRowColumnIndex, FrameworkElement uiElement, Rect cellRect)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | The corresponding row and column index of the cell. |
Microsoft.UI.Xaml.FrameworkElement | uiElement | The corresponding UiElement that is to be arranged |
Windows.Foundation.Rect | cellRect | The corresponding size of cell element for arranging the UIElement |
Overrides
OnEditingComplete(TreeDataColumnBase, FrameworkElement)
Invoked when the editing is completed on the cell.
Declaration
protected override void OnEditingComplete(TreeDataColumnBase dataColumn, FrameworkElement currentRendererElement)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | The corresponding datacolumn of the cell. |
Microsoft.UI.Xaml.FrameworkElement | currentRendererElement | The corresponding renderer element of the cell. |
Overrides
OnEnteredEditMode(TreeDataColumnBase, FrameworkElement)
Invoked when the cell is being entered on the edit mode.
Declaration
protected override void OnEnteredEditMode(TreeDataColumnBase dataColumn, FrameworkElement currentRendererElement)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | The corresponding TreeDataColumnBase. |
Microsoft.UI.Xaml.FrameworkElement | currentRendererElement | The corresponding renderer element in edit mode. |
Overrides
OnInitializeDisplayElement(TreeDataColumnBase, ContentControl, Object)
Method which initialize the display element.
Declaration
public override void OnInitializeDisplayElement(TreeDataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | Specifies the corresponding TreeDataColumnBase. |
Microsoft.UI.Xaml.Controls.ContentControl | uiElement | Specifies the corresponding renderer element |
System.Object | dataContext | Specifies the data context of the cell. |
Overrides
OnInitializeEditElement(TreeDataColumnBase, ContentControl, Object)
Method which is used to initialize the renderer element bindings with corresponding column values.
Declaration
public override void OnInitializeEditElement(TreeDataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | Specifies the corresponding TreeDataColumnBase. |
Microsoft.UI.Xaml.Controls.ContentControl | uiElement | Specifies the corresponding renderer element. |
System.Object | dataContext | Specifies the data context of the cell. |
Overrides
OnInitializeTemplateElement(TreeDataColumnBase, ContentControl, Object)
Called when initialize template element.
Declaration
public override void OnInitializeTemplateElement(TreeDataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | Specifies the corresponding TreeDataColumnBase. |
Microsoft.UI.Xaml.Controls.ContentControl | uiElement | Specifies the corresponding renderer element. |
System.Object | dataContext | Specifies the data context of the cell. |
Overrides
OnUnwireDisplayUIElement(ContentControl)
Unwires the events associated with display UIElement of the cell.
Declaration
protected override void OnUnwireDisplayUIElement(ContentControl uiElement)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Controls.ContentControl | uiElement | The corresponding display UIElement to unwire its events. |
Overrides
OnUnwireEditUIElement(ContentControl)
Unwires the events associated with edit UIElement.
Declaration
protected override void OnUnwireEditUIElement(ContentControl uiElement)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Controls.ContentControl | uiElement | The corresponding edit UIElement to unwire its events. |
Overrides
OnUpdateEditBinding(TreeDataColumnBase, ContentControl, Object)
Updates the binding for edit element of cell in column.
Declaration
public override void OnUpdateEditBinding(TreeDataColumnBase dataColumn, ContentControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | The corresponding dataColumn where the cell is located. |
Microsoft.UI.Xaml.Controls.ContentControl | uiElement | The corresponding element to update binding of edit element. |
System.Object | dataContext | The data context of the cell. |
Overrides
ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs)
Handles the key interaction with editor of corresponding column.
Declaration
protected override bool ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Input.KeyRoutedEventArgs | e | The Microsoft.UI.Xaml.Input.KeyRoutedEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
System.Boolean | True if the parent grid should be allowed to handle keys; false otherwise. |