SystemParameters.SnapToDefaultButton 属性

定义

获取一个值,该值指示是否启用管理单元到默认按钮。 如果启用,鼠标光标会自动移动到对话框的默认按钮,例如 “确定 ”或 “应用”。

public:
 static property bool SnapToDefaultButton { bool get(); };
public static bool SnapToDefaultButton { [System.Security.SecurityCritical] get; }
public static bool SnapToDefaultButton { get; }
[<get: System.Security.SecurityCritical>]
static member SnapToDefaultButton : bool
static member SnapToDefaultButton : bool
Public Shared ReadOnly Property SnapToDefaultButton As Boolean

属性值

true 启用该功能时;否则,为 false.

属性

注解

从SPI_GETSNAPTODEFBUTTON获取此指标。 请参阅 SystemParametersInfo

XAML 属性用法

< object property=“{ SystemParameters.SnapToDefaultButton}”/>

适用于