Class GridCellUpDownRenderer
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid.Cells
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class GridCellUpDownRenderer : GridVirtualizingCellRenderer<TextBlock, SfNumericUpDown>, IGridCellRenderer, IDisposable
Constructors
GridCellUpDownRenderer()
Initializes a new instance of the GridCellUpDownRenderer class.
Declaration
public GridCellUpDownRenderer()
Methods
GetControlValue()
Declaration
public override object GetControlValue()
Returns
Type |
---|
System.Object |
Overrides
OnEditElementLoaded(Object, RoutedEventArgs)
Invoked when the edit element(SfNumericUpDown) 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(SfNumericUpDown) 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
OnInitializeDisplayElement(DataColumnBase, TextBlock, Object)
Called when [initialize display element].
Declaration
public override void OnInitializeDisplayElement(DataColumnBase dataColumn, TextBlock uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | DataColumn which holds GridColumn, RowColumnIndex and GridCell |
Windows.UI.Xaml.Controls.TextBlock | uiElement | Corresponding Renderer Element |
System.Object | dataContext | The data context. |
Overrides
OnInitializeEditElement(DataColumnBase, SfNumericUpDown, Object)
Called when [initialize edit element].
Declaration
public override void OnInitializeEditElement(DataColumnBase dataColumn, SfNumericUpDown uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | DataColumn which holds GridColumn, RowColumnIndex and GridCell |
SfNumericUpDown | uiElement | The UI element. |
System.Object | dataContext | The data context. |
Overrides
OnPreviewTextInput(KeyRoutedEventArgs)
Called when text is entered in the Data Control
Declaration
protected override void OnPreviewTextInput(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.KeyRoutedEventArgs | e | KeyRoutedEventArgs |
Overrides
OnUnwireEditUIElement(SfNumericUpDown)
Declaration
protected override void OnUnwireEditUIElement(SfNumericUpDown uiElement)
Parameters
Type | Name | Description |
---|---|---|
SfNumericUpDown | uiElement |
Overrides
OnUpdateDisplayBinding(DataColumnBase, TextBlock, Object)
Called when [update display binding].
Declaration
public override void OnUpdateDisplayBinding(DataColumnBase dataColumn, TextBlock uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | DataColumn which holds GridColumn, RowColumnIndex and GridCell |
Windows.UI.Xaml.Controls.TextBlock | uiElement | The UI element. |
System.Object | dataContext | The data context. |
Overrides
OnUpdateEditBinding(DataColumnBase, SfNumericUpDown, Object)
Called when [update edit binding].
Declaration
public override void OnUpdateEditBinding(DataColumnBase dataColumn, SfNumericUpDown element, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | DataColumn which holds GridColumn, RowColumnIndex and GridCell |
SfNumericUpDown | element | The element. |
System.Object | dataContext | The data context. |
Overrides
SetControlValue(Object)
Declaration
public override void SetControlValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Overrides
SetFocus(FrameworkElement, Boolean)
Declaration
protected override void SetFocus(FrameworkElement uiElement, bool needToFocus)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.FrameworkElement | uiElement | |
System.Boolean | needToFocus |
Overrides
ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs)
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(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.KeyRoutedEventArgs | e | A Windows.UI.Xaml.Input.KeyRoutedEventArgs object. |
Returns
Type | Description |
---|---|
System.Boolean | True if the parent grid should be allowed to handle keys; false otherwise. |