Class GraphicCellRendererBase<T>
Inheritance
System.Object
GraphicCellRendererBase<T>
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GraphicCellRendererBase<T> : Object, IGraphicCellRenderer where T : FrameworkElement, new()
Type Parameters
Constructors
GraphicCellRendererBase()
Declaration
public GraphicCellRendererBase()
Properties
CanCreateRenderElement
Declaration
public bool CanCreateRenderElement { get; set; }
Property Value
CellModel
Declaration
public GraphicCellModelBase CellModel { get; }
Property Value
CurrentRenderElement
Declaration
public UIElement CurrentRenderElement { get; }
Property Value
Type |
System.Windows.UIElement |
CurrentStyle
Declaration
public GraphicStyleInfo CurrentStyle { get; }
Property Value
CurrentUIElement
Declaration
public UIElement CurrentUIElement { get; }
Property Value
Type |
System.Windows.UIElement |
GridControl
Declaration
public GridControlBase GridControl { get; set; }
Property Value
IsEditable
Declaration
public bool IsEditable { get; set; }
Property Value
Methods
CreateUIElement(GraphicStyleInfo)
Declaration
protected virtual T CreateUIElement(GraphicStyleInfo cellInfo)
Parameters
Returns
GetBounds(UIElement)
Declaration
public static Rect GetBounds(UIElement el)
Parameters
Type |
Name |
Description |
System.Windows.UIElement |
el |
|
Returns
GetControlValueFromEditor(T)
Declaration
protected virtual object GetControlValueFromEditor(T uiElement)
Parameters
Type |
Name |
Description |
T |
uiElement |
|
Returns
OnArrange(UIElement, Rect, GraphicStyleInfo)
Declaration
protected virtual void OnArrange(UIElement uiElement, Rect rect, GraphicStyleInfo style)
Parameters
Type |
Name |
Description |
System.Windows.UIElement |
uiElement |
|
System.Windows.Rect |
rect |
|
GraphicStyleInfo |
style |
|
OnInitializeContent(T, GraphicStyleInfo)
Declaration
protected virtual void OnInitializeContent(T element, GraphicStyleInfo style)
Parameters
RaiseCreated(GraphicCellModelBase)
Declaration
public void RaiseCreated(GraphicCellModelBase cellModel)
Parameters
SetBounds(UIElement, Rect, Boolean, Boolean)
Declaration
protected virtual void SetBounds(UIElement el, Rect rect, bool forceMeasure, bool forceArrange)
Parameters
Type |
Name |
Description |
System.Windows.UIElement |
el |
|
System.Windows.Rect |
rect |
|
System.Boolean |
forceMeasure |
|
System.Boolean |
forceArrange |
|
Declaration
protected virtual bool ShouldTryToHandlePreviewKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.KeyEventArgs |
e |
|
Returns
UnloadUIElements(Int32, T)
Declaration
protected virtual void UnloadUIElements(int index, T uiElement)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
T |
uiElement |
|
UnWireEvents(T)
Declaration
protected virtual void UnWireEvents(T element)
Parameters
Type |
Name |
Description |
T |
element |
|
WireEvents(T)
Declaration
protected virtual void WireEvents(T element)
Parameters
Type |
Name |
Description |
T |
element |
|
Explicit Interface Implementations
IGraphicCellRenderer.Arrange(UIElement, Rect, GraphicStyleInfo)
Declaration
void IGraphicCellRenderer.Arrange(UIElement uiElements, Rect cellRect, GraphicStyleInfo style)
Parameters
Type |
Name |
Description |
System.Windows.UIElement |
uiElements |
|
System.Windows.Rect |
cellRect |
|
GraphicStyleInfo |
style |
|
IGraphicCellRenderer.PrepareUIElements(GraphicStyleInfo, GraphicCellSpanInfo)
Declaration
UIElement IGraphicCellRenderer.PrepareUIElements(GraphicStyleInfo cellInfo, GraphicCellSpanInfo cellSpanInfo)
Parameters
Returns
Type |
System.Windows.UIElement |
IGraphicCellRenderer.SetBounds(UIElement, Rect, Boolean, Boolean)
Declaration
void IGraphicCellRenderer.SetBounds(UIElement el, Rect rect, bool forceMeasure, bool forceArrange)
Parameters
Type |
Name |
Description |
System.Windows.UIElement |
el |
|
System.Windows.Rect |
rect |
|
System.Boolean |
forceMeasure |
|
System.Boolean |
forceArrange |
|
Declaration
bool IGraphicCellRenderer.ShouldTryToHandlePreviewKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.KeyEventArgs |
e |
|
Returns
IGraphicCellRenderer.UnloadUIElements(Int32, GraphicCellUIElement)
Declaration
void IGraphicCellRenderer.UnloadUIElements(int index, GraphicCellUIElement uiElement)
Parameters
Implements