Export (0) Print
Expand All
Expand Minimize

CaptureMode Enumeration

Specifies the mouse capture policies.

Namespace:  System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public enum CaptureMode
<object property="enumerationMemberName" .../>

Member nameDescription
ElementMouse capture is applied to a single element. Mouse input goes to the captured element.
NoneNo mouse capture. Mouse input goes to the element under the mouse.
SubTreeMouse 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.

When CaptureMode is set to Element, mouse capture is applied only to the element which has captured the mouse.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft