共用方式為


PendingFocusHelper Class

Helper to send focus to the FrameworkElement immediately or delay focusing until the FrameworkElement is loaded.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.PlatformUI.PendingFocusHelper

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public NotInheritable Class PendingFocusHelper
public static class PendingFocusHelper

The PendingFocusHelper type exposes the following members.

Methods

  Name Description
Public methodStatic member SetFocusOnLoad Sets focus on the last element pending focus on the Loaded event, all previous elements will not be focused.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.PlatformUI Namespace