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