Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets focus on the last element pending focus on the Loaded event, all previous elements 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 SetFocusOnLoad ( _
    element As FrameworkElement _
)
public static void SetFocusOnLoad(
    FrameworkElement element
)
public:
static void SetFocusOnLoad(
    FrameworkElement^ element
)
static member SetFocusOnLoad : 
        element:FrameworkElement -> unit
public static function SetFocusOnLoad(
    element : FrameworkElement
)
Parameters
element
Type: System.Windows.FrameworkElementThe element to set focus on.
.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.