Class FocusManagerHelper
Helper class which holds the properties and operations related with focus of UIElement and Visual objects.
Inheritance
Namespace: Syncfusion.UI.Xaml.CellGrid.Helpers
Assembly: Syncfusion.SfCellGrid.UWP.dll
Syntax
public static class FocusManagerHelper : Object
  Fields
FocusedElementProperty
Represents a property that can be set when you need to focus the element.
Declaration
public static readonly DependencyProperty FocusedElementProperty
  Field Value
| Type | 
|---|
| Windows.UI.Xaml.DependencyProperty | 
WantsKeyInputProperty
Represents a property that handles the template element.
Declaration
public static readonly DependencyProperty WantsKeyInputProperty
  Field Value
| Type | 
|---|
| Windows.UI.Xaml.DependencyProperty | 
Methods
FindElementsOfType<T>(FrameworkElement)
Searches the subtree of an element (including that element) for an element of a particluar type.
Declaration
public static IEnumerable<T> FindElementsOfType<T>(this FrameworkElement element)
    where T : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.UI.Xaml.FrameworkElement | element | Framework Element.  | 
      
Returns
| Type | 
|---|
| System.Collections.Generic.IEnumerable<T> | 
Type Parameters
| Name | 
|---|
| T | 
FindVisualChildren<T>(DependencyObject)
Returns the child visual object from the specified collection index within a specified parent.
Declaration
public static IEnumerable<T> FindVisualChildren<T>(DependencyObject parent)
    where T : DependencyObject
  Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.UI.Xaml.DependencyObject | parent | The parent visual, referenced as a System.Windows.DependencyObject.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<T> | The index value of the child visual object.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | A specified type.  | 
      
GetFocusedElement(UIElement)
Gets the value from the focused element.
Declaration
public static bool GetFocusedElement(UIElement element)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.UI.Xaml.UIElement | element | UIElement  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | True or False.  | 
      
GetFocusedUIElement(UIElement)
Generic method to get the child object
Declaration
public static UIElement GetFocusedUIElement(UIElement obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.UI.Xaml.UIElement | obj | UIElement.  | 
      
Returns
| Type | 
|---|
| Windows.UI.Xaml.UIElement | 
GetWantsKeyInput(UIElement)
Gets the value from KeyInput element.
Declaration
public static bool GetWantsKeyInput(UIElement style)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.UI.Xaml.UIElement | style | UIElement.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | True or False.  | 
      
SetFocusedElement(UIElement, Boolean)
Sets the values for the focused element.
Declaration
public static void SetFocusedElement(UIElement element, bool value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.UI.Xaml.UIElement | element | UIElement.  | 
      
| System.Boolean | value | True or False.  | 
      
SetWantsKeyInput(UIElement, Boolean)
Sets the value to KeyInput element.
Declaration
public static void SetWantsKeyInput(UIElement style, bool value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.UI.Xaml.UIElement | style | UIElement.  | 
      
| System.Boolean | value | True or False .  |