次の方法で共有


FocusHelper.GetFocusTarget(UIElement) Method

Definition

Gets the focus target for an element. The focus target is automatically focused whenever the DependencyObject the target is attached to receives direct keyboard focus.

public:
 static System::Windows::UIElement ^ GetFocusTarget(System::Windows::UIElement ^ element);
public static System.Windows.UIElement GetFocusTarget (System.Windows.UIElement element);
static member GetFocusTarget : System.Windows.UIElement -> System.Windows.UIElement
Public Shared Function GetFocusTarget (element As UIElement) As UIElement

Parameters

element
UIElement

The element which should have a focus target attached to it.

Returns

The current focus target for the element.

Applies to