SnapToDefaultButton Property
TOC
Collapse the table of content
Expand the table of content

SystemParameters.SnapToDefaultButton Property

 

Gets a value indicating whether the snap-to-default button is enabled. If enabled, the mouse cursor automatically moves to the default button of a dialog box, such as OK or Apply.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static bool SnapToDefaultButton {
	[SecurityCriticalAttribute]
	get;
}

Property Value

Type: System.Boolean

true when the feature is enabled; otherwise, false.

Obtain this metric from SPI_GETSNAPTODEFBUTTON. See SystemParametersInfo.

<object property="{ SystemParameters.SnapToDefaultButton}"/>

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft