FocusManager.GetFocusedElement 메서드

정의

오버로드

GetFocusedElement()

포커스가 있는 UI의 요소를 검색합니다.

GetFocusedElement(XamlRoot)

Xaml 아일랜드 컨테이너 내에서 포커스가 있는 요소를 검색합니다.

GetFocusedElement()

포커스가 있는 UI의 요소를 검색합니다.

public:
 static Platform::Object ^ GetFocusedElement();
 static IInspectable GetFocusedElement();
public static object GetFocusedElement();
function getFocusedElement()
Public Shared Function GetFocusedElement () As Object

반환

Object

Platform::Object

IInspectable

포커스가 있는 개체입니다. 일반적으로 Control 클래스입니다.

적용 대상

GetFocusedElement(XamlRoot)

Xaml 아일랜드 컨테이너 내에서 포커스가 있는 요소를 검색합니다.

public:
 static Platform::Object ^ GetFocusedElement(XamlRoot ^ xamlRoot);
/// [Windows.Foundation.Metadata.Overload("GetFocusedElement")]
 static IInspectable GetFocusedElement(XamlRoot const& xamlRoot);
[Windows.Foundation.Metadata.Overload("GetFocusedElement")]
public static object GetFocusedElement(XamlRoot xamlRoot);
function getFocusedElement(xamlRoot)
Public Shared Function GetFocusedElement (xamlRoot As XamlRoot) As Object

매개 변수

xamlRoot
XamlRoot

반환

Object

Platform::Object

IInspectable

포커스가 있는 개체입니다. 일반적으로 Control 클래스입니다.

특성

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1903 (10.0.18362.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v8.0에서 도입되었습니다.)

추가 정보

적용 대상