Show / Hide Table of Contents

    Class FocusMonitor

    Focus monitor: Helps you keep up with what VisualElement currently has focus

    Inheritance
    Object
    FocusMonitor
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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

    true if enabled; otherwise, false.

    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>
    Back to top Copyright © 2018 42nd Parallel