Class GridCellHyperlinkRenderer
Represents the class that loads the Hyperlink button as editor for GridHyperlinkColumn.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.DataGrid.Renderers
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class GridCellHyperlinkRenderer : GridVirtualizingCellRenderer<TextBlock, HyperlinkButton>, IGridCellRenderer, IDisposableExamples
this.sfDataGrid.CellRenderers.Remove("Hyperlink");
this.sfDataGrid.CellRenderers.Add("Hyperlink", new GridCellHyperlinkRendererExt());
public class GridCellHyperlinkRendererExt : GridCellHyperlinkRenderer
{
  public override void OnInitializeEditElement(DataColumnBase dataColumn, HyperlinkButton uiElement, object dataContext)
  {
       base.OnInitializeEditElement(dataColumn, uiElement, dataContext);
       uiElement.Foreground = new SolidColorBrush(Colors.Red);
  }
}Constructors
GridCellHyperlinkRenderer()
Initializes a new instance of the GridCellHyperlinkRenderer class.
Declaration
public GridCellHyperlinkRenderer()Methods
OnCreateEditUIElement()
Creates a new UIElement for the edit mode of cell.
Declaration
protected override HyperlinkButton OnCreateEditUIElement()Returns
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.Controls.HyperlinkButton | The new UIElement for the edit mode of cell. | 
Overrides
OnInitializeEditElement(DataColumnBase, HyperlinkButton, Object)
Method which is used to initialize the renderer element bindings with corresponding column values.
Declaration
public override void OnInitializeEditElement(DataColumnBase dataColumn, HyperlinkButton uiElement, object dataContext)Parameters
| Type | Name | Description | 
|---|---|---|
| DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. | 
| Microsoft.UI.Xaml.Controls.HyperlinkButton | uiElement | Specifies the corresponding renderer element. | 
| System.Object | dataContext | Specifies the data context of the cell. | 
Overrides
OnUnwireEditUIElement(HyperlinkButton)
Unwires the events associated with edit UIElement
Declaration
protected override void OnUnwireEditUIElement(HyperlinkButton uiElement)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Controls.HyperlinkButton | uiElement | Specifies the corresponding UIElement. | 
Overrides
OnWireEditUIElement(HyperlinkButton)
Wires the events associated with edit UIElement.
Declaration
protected override void OnWireEditUIElement(HyperlinkButton uiElement)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Controls.HyperlinkButton | uiElement | Specifies the corresponding edit UIElement. | 
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 contains the event data. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | Returns true if the parent grid should be allowed to handle keys; otherwise false. |