PendingFocusHelper.SetFocusOnLoad Method
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
'宣告
Public Shared Sub SetFocusOnLoad ( _
element As FrameworkElement _
)
public static void SetFocusOnLoad(
FrameworkElement element
)
Parameters
- element
Type: System.Windows.FrameworkElement
The 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.