FocusHelper.IsKeyboardFocusWithin Method (UIElement)

Determines whether WPF or Win32 keyboard focus is within the specified element.

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

Syntax

'Declaration
Public Shared Function IsKeyboardFocusWithin ( _
    element As UIElement _
) As Boolean
public static bool IsKeyboardFocusWithin(
    UIElement element
)
public:
static bool IsKeyboardFocusWithin(
    UIElement^ element
)
static member IsKeyboardFocusWithin : 
        element:UIElement -> bool
public static function IsKeyboardFocusWithin(
    element : UIElement
) : boolean

Parameters

  • element
    Type: UIElement

    The element to check.

Return Value

Type: Boolean
Returns true if the focus is within the element; otherwise returns false.

.NET Framework Security

See Also

Reference

FocusHelper Class

IsKeyboardFocusWithin Overload

Microsoft.VisualStudio.PlatformUI Namespace