FocusManager.GetFocusedElement method

Applies to Windows and Windows Phone

Gets the element in the UI that has focus.

Syntax


public static object GetFocusedElement()

Parameters

This method has no parameters.

Return value

Type: System.Object [.NET] | Platform::Object [C++]

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Input
Windows::UI::Xaml::Input [C++]

Metadata

Windows.winmd

See also

FocusManager

 

 

Show:
© 2014 Microsoft