Keyboard.ClearFocus Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Clears focus.
public:
static void ClearFocus();
public static void ClearFocus ();
static member ClearFocus : unit -> unit
Public Shared Sub ClearFocus ()
Remarks
If focus is within a Win32 window, WPF calls the ClearFocus method on restoration of focus when a menu is closed.
When leaving menu mode, Win32 focus is returned to the hosted child HWND, and no element has WPF focus.
Applies to
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.