FocusManager.GetFocusedElement メソッド

定義

オーバーロード

GetFocusedElement()

フォーカスがある UI 内の要素を取得します。

GetFocusedElement(XamlRoot)

XAML アイランド コンテナー内のフォーカスされた要素を取得します。

GetFocusedElement()

フォーカスがある UI 内の要素を取得します。

public:
 static Platform::Object ^ GetFocusedElement();
/// [Windows.Foundation.Metadata.Overload("GetFocusedElement")]
 static IInspectable GetFocusedElement();
[Windows.Foundation.Metadata.Overload("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("GetFocusedElementWithRoot")]
 static IInspectable GetFocusedElement(XamlRoot const& xamlRoot);
[Windows.Foundation.Metadata.Overload("GetFocusedElementWithRoot")]
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 クラスです。

属性

こちらもご覧ください

適用対象