共用方式為


FocusHelper.IsKeyboardFocusWithin Method

Include Protected Members
Include Inherited Members

Determines if WPF or Win32 keyboard focus is within a UIElement.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member IsKeyboardFocusWithin(IntPtr) Determines whether WPF or Win32 keyboard focus is within the specified HWND.
Public methodStatic member IsKeyboardFocusWithin(UIElement) Determines whether WPF or Win32 keyboard focus is within the specified element.

Top

See Also

Reference

FocusHelper Class

Microsoft.VisualStudio.PlatformUI Namespace