CaptureMode 枚举

定义

指定鼠标捕获策略。Specifies the mouse capture policies.

public enum class CaptureMode
public enum CaptureMode
type CaptureMode = 
Public Enum CaptureMode
继承
CaptureMode

字段

Element 1

鼠标捕获应用于单个元素。Mouse capture is applied to a single element. 鼠标输入转至已捕获的元素。Mouse input goes to the captured element.

None 0

没有鼠标捕获。No mouse capture. 鼠标输入转至鼠标下的元素。Mouse input goes to the element under the mouse.

SubTree 2

鼠标捕获应用于元素的子树。Mouse capture is applied to a subtree of elements. 如果鼠标悬停在具有捕获的元素的子级上,则会将鼠标输入发送至该子元素。If the mouse is over a child of the element with capture, mouse input is sent to the child element. 否则,会将鼠标输入发送至具有鼠标捕获的元素。Otherwise, mouse input is sent to the element with mouse capture.

注解

CaptureMode设置为Element时, 将仅对捕获了鼠标的元素应用鼠标捕获。When CaptureMode is set to Element, mouse capture is applied only to the element that has captured the mouse.

CaptureMode设置为SubTree时, 如果鼠标位于子元素上, 则将鼠标捕获应用于具有鼠标捕获的元素或其某个子元素。When CaptureMode is set to SubTree, mouse capture is applied to the element that has mouse capture or one of its child elements if the mouse is over the child element.

适用于

另请参阅