FocusHelper.IsKeyboardFocusWithin Method (UIElement)
Determines whether WPF or Win32 keyboard focus is within the specified element.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
‘선언
Public Shared Function IsKeyboardFocusWithin ( _
element As UIElement _
) As Boolean
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.
.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.