Class GridCellButtonRenderer
Implements the renderer part of a button cell.
Inheritance
System.Object
GridVirtualizingCellRendererBase<System.Windows.Controls.Button>
GridVirtualizingCellRenderer<System.Windows.Controls.Button>
GridCellButtonRenderer
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridCellButtonRenderer : GridVirtualizingCellRenderer<Button>, IGridCellRenderer, ICellRenderer, IHitTestSelectCells, IStyleChanged, IDisposable, IAllowKeepAliveOnlyCurrentCell
Constructors
GridCellButtonRenderer()
Initializes the button cell renderer.
Declaration
public GridCellButtonRenderer()
Methods
ArrangeUIElement(ArrangeCellArgs, Button, GridRenderStyleInfo)
Declaration
protected override void ArrangeUIElement(ArrangeCellArgs aca, Button uiElement, GridRenderStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
ArrangeCellArgs | aca | |
System.Windows.Controls.Button | uiElement | |
GridRenderStyleInfo | style |
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRendererBase<System.Windows.Controls.Button>.ArrangeUIElement(Syncfusion.Windows.Controls.Cells.ArrangeCellArgs, System.Windows.Controls.Button, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
CreateRendererElement(Button, GridRenderStyleInfo)
Declaration
public override void CreateRendererElement(Button button, GridRenderStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.Button | button | |
GridRenderStyleInfo | style |
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<System.Windows.Controls.Button>.CreateRendererElement(System.Windows.Controls.Button, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
GetControlTextFromEditorCore(Button)
Declaration
protected override string GetControlTextFromEditorCore(Button button)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.Button | button |
Returns
Type |
---|
System.String |
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<System.Windows.Controls.Button>.GetControlTextFromEditorCore(System.Windows.Controls.Button)
OnActivated()
Declaration
protected override void OnActivated()
Overrides
OnDeactivated()
Declaration
protected override void OnDeactivated()
Overrides
OnInitializeContent(Button, GridRenderStyleInfo)
Initializes the content of the button cell using the information from the cell style (value, text, behavior etc.).
Declaration
public override void OnInitializeContent(Button button, GridRenderStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.Button | button | The button. |
GridRenderStyleInfo | style | The cell style info. |
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<System.Windows.Controls.Button>.OnInitializeContent(System.Windows.Controls.Button, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
OnRender(DrawingContext, RenderCellArgs, GridRenderStyleInfo)
Declaration
protected override void OnRender(DrawingContext dc, RenderCellArgs rca, GridRenderStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | dc | |
RenderCellArgs | rca | |
GridRenderStyleInfo | style |
Overrides
Syncfusion.Windows.Controls.Cells.CellRendererBase<Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo>.OnRender(System.Windows.Media.DrawingContext, Syncfusion.Windows.Controls.Cells.RenderCellArgs, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
OnUnwireUIElement(Button)
Unwire previously wired events from button.
Declaration
protected override void OnUnwireUIElement(Button button)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.Button | button | The cell button. |
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<System.Windows.Controls.Button>.OnUnwireUIElement(System.Windows.Controls.Button)
OnWireUIElement(Button)
Wire events from button.
Declaration
protected override void OnWireUIElement(Button button)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.Button | button | The cell button. |
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<System.Windows.Controls.Button>.OnWireUIElement(System.Windows.Controls.Button)
ShouldGridTryToHandlePreviewKeyDown(KeyEventArgs)
Declaration
protected override bool ShouldGridTryToHandlePreviewKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e |
Returns
Type |
---|
System.Boolean |
Overrides
Implements
System.IDisposable