Skip to end of metadata
Go to start of metadata

Provides a set of static methods, attached properties, and events for determining and setting focus scopes and for setting the focused element within the scope.

Definition

public static class FocusManager

Summary

The following table summarizes the members exposed in this class.

Fields

Static Methods


Fields

public static readonly DependencyProperty FocusedElementProperty

public static readonly RoutedEvent GotFocusEvent

public static readonly DependencyProperty IsFocusedProperty

public static readonly DependencyProperty IsFocusScopeProperty

public static readonly RoutedEvent LostFocusEvent

Static Methods

public static DependencyObject GetFocusedElement(DependencyObject obj)

Parameters

obj

public static object GetFocusedElement()

public static DependencyObject GetFocusScope(DependencyObject element)

Parameters

element

public static bool GetIsFocused(DependencyObject obj)

Parameters

obj

public static bool GetIsFocusScope(DependencyObject obj)

Parameters

obj

public static void SetFocusedElement(DependencyObject obj, DependencyObject value)

Parameters

obj
value

public static void SetIsFocused(DependencyObject obj, bool value)

Parameters

obj
value

public static void SetIsFocusScope(DependencyObject obj, bool value)

Parameters

obj
value
  • No labels