Share via


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.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Sub FocusPossiblyUnloadedElement ( _
    element As FrameworkElement _
)
public static void FocusPossiblyUnloadedElement(
    FrameworkElement element
)
public:
static void FocusPossiblyUnloadedElement(
    FrameworkElement^ element
)
static member FocusPossiblyUnloadedElement : 
        element:FrameworkElement -> unit
public static function FocusPossiblyUnloadedElement(
    element : FrameworkElement
)

Parameters

  • element
    Type: FrameworkElement

    The element to focus.

.NET Framework Security

See Also

Reference

FocusHelper Class

Microsoft.VisualStudio.PlatformUI Namespace