EditModeSwitchButton.OnMouseDown 方法
引发 MouseDown 事件。
命名空间: Microsoft.Windows.Design.PropertyEditing
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Protected Overrides Sub OnMouseDown ( _
e As MouseButtonEventArgs _
)
protected override void OnMouseDown(
MouseButtonEventArgs e
)
protected:
virtual void OnMouseDown(
MouseButtonEventArgs^ e
) override
abstract OnMouseDown :
e:MouseButtonEventArgs -> unit
override OnMouseDown :
e:MouseButtonEventArgs -> unit
protected override function OnMouseDown(
e : MouseButtonEventArgs
)
参数
- e
类型:System.Windows.Input.MouseButtonEventArgs
一个 MouseButtonEventArgs,其中包含事件数据。
备注
因为弹出编辑器具有捕获鼠标并在用户单击编辑器以外的区域时会消失的特性,若要固定 ExtendedEditor,应使用 MouseDown 事件而不是 Click 事件。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.PropertyEditing 命名空间