Class FocusManagerHelper
Provides a set of static methods, attached property for determining and setting focus scopes and for setting the focused element within the scope for GridCell.
Inheritance
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class FocusManagerHelper : Object
Constructors
FocusManagerHelper()
Declaration
public FocusManagerHelper()
Fields
FocusedElementProperty
Identifies the Syncfusion.UI.Xaml.Grid.FocusManagerHelper.FocusedElement dependency property.
Declaration
public static readonly DependencyProperty FocusedElementProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.FocusManagerHelper.FocusedElement dependency property.
WantsKeyInputProperty
Identifies the Syncfusion.UI.Xaml.Grid.FocusManagerHelper.WantsKeyInput dependency property.
Declaration
public static readonly DependencyProperty WantsKeyInputProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.FocusManagerHelper.WantsKeyInput dependency property.
Methods
GetFocusedElement(UIElement)
Determines whether the specified element with logical focus.
Declaration
public static bool GetFocusedElement(UIElement element)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.UIElement | element | The element to determine with logical focus. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the element has logical focus; otherwise, false. |
GetFocusedUIElement(UIElement)
Gets the control with logical focus within the template of GridColumn.
Declaration
public static Control GetFocusedUIElement(UIElement obj)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.UIElement | obj | The element with logical focus in the specified focus scope. |
Returns
Type | Description |
---|---|
Windows.UI.Xaml.Controls.Control | The element in the specified focus scope with logical focus. |
GetWantsKeyInput(GridColumnBase)
Determines whether the keyboard interaction is enabled for the specified column.
Declaration
public static bool GetWantsKeyInput(GridColumnBase column)
Parameters
Type | Name | Description |
---|---|---|
GridColumnBase | column | The column to determine whether the keyboard interaction is enabled. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the keyboard interaction is enabled in the column; otherwise, false. |
SetFocusedElement(UIElement, Boolean)
Sets logical focus on the specified element inside template of GridCell.
Declaration
public static void SetFocusedElement(UIElement element, bool value)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.UIElement | element | The element to give logical focus to. |
System.Boolean | value | true if element has focus scope; otherwise, false. |
SetWantsKeyInput(GridColumnBase, Boolean)
Provides the keyboard access to the UIElement loaded inside CellTemplate of Gridcolumn.
Declaration
public static void SetWantsKeyInput(GridColumnBase column, bool value)
Parameters
Type | Name | Description |
---|---|---|
GridColumnBase | column | The column which has CellTemplate to give keyboard access. |
System.Boolean | value | true if the keyboard interaction is enabled the UIElement for the specified column; otherwise, false. |
Remarks
The keyboard interaction can be set when the column that has CellTemplate.