Bagikan melalui


FocusManager.GetFocusedElement Metode

Definisi

Overload

GetFocusedElement()

Mengambil elemen di UI yang memiliki fokus.

GetFocusedElement(XamlRoot)

Mengambil elemen terfokus dalam kontainer pulau Xaml.

GetFocusedElement()

Mengambil elemen di UI yang memiliki fokus.

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

Mengembalikan

Object

Platform::Object

IInspectable

Objek yang memiliki fokus. Biasanya, ini adalah kelas Kontrol .

Berlaku untuk

GetFocusedElement(XamlRoot)

Mengambil elemen terfokus dalam kontainer pulau 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

Parameter

xamlRoot
XamlRoot

Mengembalikan

Object

Platform::Object

IInspectable

Objek yang memiliki fokus. Biasanya, ini adalah kelas Kontrol .

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10, version 1903 (diperkenalkan dalam 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v8.0)

Lihat juga

Berlaku untuk