共用方式為


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

.NET Framework Security

See Also

Reference

PendingFocusHelper Class

Microsoft.VisualStudio.PlatformUI Namespace