Class TreeGridCellMaskRenderer
Renderer for TreeGridMaskColumn which is used to display the masked data.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.TreeGrid.Cells
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class TreeGridCellMaskRenderer : TreeGridVirtualizingCellRenderer<TextBlock, MaskedTextBox>, ITreeGridCellRenderer, IDisposable
Constructors
TreeGridCellMaskRenderer()
Declaration
public TreeGridCellMaskRenderer()
Methods
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 |
---|
System.Boolean |
Overrides
GetControlValue()
Gets the control value.
Declaration
public override object GetControlValue()
Returns
Type |
---|
System.Object |
Overrides
OnEditElementLoaded(Object, RoutedEventArgs)
Invoked when the edit element(MaskedTextBox or SfMaskedEdit) 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. |
System.Windows.RoutedEventArgs | e | The System.Windows.RoutedEventArgs instance containing the event data. |
Overrides
OnEditElementUnloaded(Object, RoutedEventArgs)
Invoked when the edit element(MaskedTextBox or SfMaskedEdit) 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. |
System.Windows.RoutedEventArgs | e | The System.Windows.RoutedEventArgs instance containing the event data. |
Overrides
OnInitializeDisplayElement(TreeDataColumnBase, TextBlock, Object)
Called when [initialize display element].
Declaration
public override void OnInitializeDisplayElement(TreeDataColumnBase dataColumn, TextBlock uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | TreeDataColumn Which holds TreeGridColumn, RowColumnIndex and TreeGridCell |
System.Windows.Controls.TextBlock | uiElement | Corresponding Renderer Element |
System.Object | dataContext | The data context. |
Overrides
OnInitializeEditElement(TreeDataColumnBase, MaskedTextBox, Object)
Called when [initialize edit element].
Declaration
public override void OnInitializeEditElement(TreeDataColumnBase dataColumn, MaskedTextBox uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | TreeDataColumn Which holds TreeGridColumn, RowColumnIndex and GridCell |
MaskedTextBox | uiElement | Corresponding Renderer Element |
System.Object | dataContext | The data context. |
Overrides
OnPreviewTextInput(TextCompositionEventArgs)
Called when text is entered in the Data Control
Declaration
protected override void OnPreviewTextInput(TextCompositionEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.TextCompositionEventArgs | e | KeyRoutedEventArgs |
Overrides
OnUnwireEditUIElement(MaskedTextBox)
Called when [unwire edit UI element].
Declaration
protected override void OnUnwireEditUIElement(MaskedTextBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
MaskedTextBox | uiElement | The UI element. |
Overrides
SetControlValue(Object)
Sets the control value.
Declaration
public override void SetControlValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Overrides
ShouldGridTryToHandleKeyDown(KeyEventArgs)
Let Renderer decide whether the parent grid should be allowed to handle keys and prevent the key event from being handled by the visual UIElement for this renderer. If this method returns true the parent grid will handle arrow keys and set the Handled flag in the event data. Keys that the grid does not handle will be ignored and be routed to the UIElement for this renderer.
Declaration
protected override bool ShouldGridTryToHandleKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e | A System.Windows.Input.KeyEventArgs object. |
Returns
Type | Description |
---|---|
System.Boolean | True if the parent grid should be allowed to handle keys; false otherwise. |