Class FocusMonitor
Focus monitor: Helps you keep up with what VisualElement currently has focus
Inherited Members
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public static class FocusMonitor
Properties
Enabled
Gets or sets a value indicating whether this FocusMonitor is enabled.
Declaration
public static bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
FocusedElement
Gets or sets the focused element.
Declaration
public static VisualElement FocusedElement { get; set; }
Property Value
| Type | Description |
|---|---|
| VisualElement | The focused element. |
Methods
Start(VisualElement)
Starts monitoring a VisualElement and all of its decendants
Declaration
public static void Start(VisualElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | element | Element. |
Stop(VisualElement)
Stops monitoring a VisualElement and all of its decendants
Declaration
public static void Stop(VisualElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | element | Element. |
Events
FocusedElementChanged
Occurs when focused element changed.
Declaration
public static event EventHandler<VisualElement> FocusedElementChanged
Event Type
| Type | Description |
|---|---|
| EventHandler<VisualElement> |