FocusHelper.GetFocusTarget(UIElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.