UIElement.StylusEnter UIElement.StylusEnter UIElement.StylusEnter UIElement.StylusEnter Event

定义

在触笔进入此元素的边界时发生。Occurs when the stylus enters the bounds of this element.

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 is a routed event that uses the direct event handling routing strategy. 直接路由事件不沿路由引发;相反, 它们是在引发它们的同一元素中进行处理的。Direct routed events are not raised along a route; instead, they are handled in the same element where they are raised. 但是, 它们会启用路由事件行为的其他方面, 如样式中的事件触发器。However, they do enable other aspects of routed event behavior, such as event triggers in styles.

尽管StylusEnter在触笔进入元素边界时进行跟踪, 但此事件更确切地报告此IsStylusOver元素上的属性值falsetrue从更改为。Although StylusEnter tracks when the stylus enters the bounds of an element, this event more literally reports that the IsStylusOver property value has changed from false to true on this element.

此事件将为此类创建Stylus.StylusEnter附加事件的别名, 因此当继承StylusEnter为基元素时UIElement , 它是类成员列表的一部分。This event creates an alias for the Stylus.StylusEnter attached event for this class, so that StylusEnter is part of the class members list when UIElement is inherited as a base element. 附加到StylusEnter事件的事件处理程序附加到基础Stylus.StylusEnter附加事件, 并接收相同的事件数据实例。Event handlers that are attached to the StylusEnter event are attached to the underlying Stylus.StylusEnter attached event and receive the same event data instance.

触摸、鼠标和触笔输入在特定关系中存在。Touch, mouse, and stylus input exist in a particular relationship. 有关详细信息, 请参阅输入概述For more information, see Input Overview.

路由事件信息Routed Event Information

标识符字段Identifier field StylusEnterEvent
路由策略Routing strategy 直接Direct
委托Delegate StylusEventHandler
  • OnStylusEnter写以在派生类中实现此事件的类处理。Override OnStylusEnter to implement class handling for this event in derived classes.

适用于