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")]
/// [Windows.Foundation.Metadata.Deprecated("GetFocusedElement() is deprecated. Use GetFocusedElement(XamlRoot) instead to ensure correct behavior in multi-window scenarios.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
 static IInspectable GetFocusedElement();
[Windows.Foundation.Metadata.Overload("GetFocusedElement")]
public static object GetFocusedElement();
[Windows.Foundation.Metadata.Overload("GetFocusedElement")]
[Windows.Foundation.Metadata.Deprecated("GetFocusedElement() is deprecated. Use GetFocusedElement(XamlRoot) instead to ensure correct behavior in multi-window scenarios.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
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 クラスです。

属性

こちらもご覧ください

適用対象