UIElement3D.StylusEnter 事件

定义

在触笔进入此元素的边界时发生。

public:
 virtual event System::Windows::Input::StylusEventHandler ^ StylusEnter;
public event System.Windows.Input.StylusEventHandler StylusEnter;
member this.StylusEnter : System.Windows.Input.StylusEventHandler 
Public Custom Event StylusEnter As StylusEventHandler 

事件类型

实现

注解

StylusEnter 是使用直接事件处理路由策略的 路由事件概述 。 不会沿路由引发直接路由事件;而是在引发它们的同一元素中处理它们。 但是,它们确实支持路由事件行为的其他方面,例如样式中的事件触发器。

尽管 StylusEnter 跟踪触笔何时进入元素的边界,但此事件更能从字面上报告此元素上的 IsStylusOver 属性值已从 false 更改为 true

此事件为此类的Stylus.StylusEnter附加事件创建别名,以便在 继承为基元素时UIElement3DStylusEnter它是类成员列表的一部分。 附加到 StylusEnter 事件的事件处理程序将附加到基础 Stylus.StylusEnter 附加事件,并接收相同的事件数据实例。

触摸、鼠标和触笔输入存在于特定关系中。 有关详细信息,请参阅 Windows Vista 中的触摸输入支持输入概述

StylusEnter在 .NET Framework 版本 3.5 中引入。 有关详细信息,请参见版本和依赖关系

路由事件信息

标识符字段 StylusEnterEvent
路由策略 直接
委托 StylusEventHandler
  • 重写 OnStylusEnter 以在派生类中实现此事件的类处理。

适用于