HwndSource.DefaultAcquireHwndFocusInMenuMode Property

.NET Framework (current version)

Gets or sets the default AcquireHwndFocusInMenuMode value for new instances of HwndSource.

Namespace:   System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

static member DefaultAcquireHwndFocusInMenuMode : bool with get, set

Property Value

Type: System.Boolean

true to acquire Win32 focus for the WPF containing window when the user interacts with menus; otherwise, false. The default is true.

New instances of HwndSource have AcquireHwndFocusInMenuMode set to this default value, unless a different value is passed as a parameter to the HwndSource constructor for a specific instance, by using the AcquireHwndFocusInMenuMode property.


to get this property. Associated enumeration: Unrestricted

.NET Framework
Available since 4.0
Return to top