Share via


FocusHelper.FocusPossiblyUnloadedElement(FrameworkElement) Method

Definition

Either sends focus to the FrameworkElement immediately using Focus, or delays focusing the FrameworkElement until it is loaded. The last element pending focus on Loaded will be focused, and all previous FrameworkElements will not be focused.

public:
 static void FocusPossiblyUnloadedElement(System::Windows::FrameworkElement ^ element);
public static void FocusPossiblyUnloadedElement (System.Windows.FrameworkElement element);
static member FocusPossiblyUnloadedElement : System.Windows.FrameworkElement -> unit
Public Shared Sub FocusPossiblyUnloadedElement (element As FrameworkElement)

Parameters

element
FrameworkElement

The element to focus.

Applies to