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
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.