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)

Public Shared Property DefaultAcquireHwndFocusInMenuMode As Boolean

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.

EnvironmentPermission

to get this property. Associated enumeration: Unrestricted

.NET Framework
Available since 4.0
Return to top
Show: