Show / Hide Table of Contents

Class FocusManager

Provides utility methods related to element focus, without the need to handle focus-related events.

Inheritance
System.Object
FocusManager
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Input
Assembly: OpenSilver.dll
Syntax
public static class FocusManager

Methods

| Improve this Doc View Source

GetFocusedElement()

Queries the Silverlight focus system to determine which object has focus.

Declaration
public static object GetFocusedElement()
Returns
Type Description
System.Object

The object that currently has focus. Typically, this is a Control class.

| Improve this Doc View Source

GetFocusedElement(DependencyObject)

Gets the element with focus within the specified focus scope.

Declaration
public static object GetFocusedElement(DependencyObject element)
Parameters
Type Name Description
DependencyObject element

Declares the scope.

Returns
Type Description
System.Object

The element in the specified focus scope that has current focus.

  • Improve this Doc
  • View Source