FocusHelper.SetFocusTarget(UIElement, 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.
Sets 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 void SetFocusTarget(System::Windows::UIElement ^ element, System::Windows::UIElement ^ value);
public static void SetFocusTarget (System.Windows.UIElement element, System.Windows.UIElement value);
static member SetFocusTarget : System.Windows.UIElement * System.Windows.UIElement -> unit
Public Shared Sub SetFocusTarget (element As UIElement, value As UIElement)
Parameters
- element
- UIElement
The element which should have a focus target attached to it.
- value
- UIElement
The new focus target for the element.