FocusHelper.FocusPossiblyUnloadedElement Method
Either sends focus to the FrameworkElement immediately or delays focusing until the FrameworkElement is loaded. The last element pending focus on Loaded will be focused and all previous FrameworkElements will not be focused.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Shared Sub FocusPossiblyUnloadedElement ( _
element As FrameworkElement _
)
public static void FocusPossiblyUnloadedElement(
FrameworkElement element
)
public:
static void FocusPossiblyUnloadedElement(
FrameworkElement^ element
)
static member FocusPossiblyUnloadedElement :
element:FrameworkElement -> unit
public static function FocusPossiblyUnloadedElement(
element : FrameworkElement
)
Parameters
element
Type: System.Windows.FrameworkElementThe element to focus.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.