FocusHelper::IsKeyboardFocusWithin Method (UIElement^)

 

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

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

public:
static bool IsKeyboardFocusWithin(
	UIElement^ element
)

Parameters

element
Type: System.Windows::UIElement^

The element to check.

Return Value

Type: System::Boolean

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

Return to top
Show: