Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Cursors Class
Collapse the table of content
Expand the table of content

Cursors Class

Defines a set of default cursors.


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

public static class Cursors

The Cursors type exposes the following members.

Public propertyStatic memberAppStartingGets the Cursor that appears when an application is starting.
Public propertyStatic memberArrowGets the Arrow Cursor.
Public propertyStatic memberArrowCDGets the arrow with a compact disk Cursor.
Public propertyStatic memberCrossGets the crosshair Cursor.
Public propertyStatic memberHandGets a hand Cursor.
Public propertyStatic memberHelpGets a help Cursor which is a combination of an arrow and a question mark.
Public propertyStatic memberIBeamGets an I-beam Cursor, which is used to show where the text cursor appears when the mouse is clicked.
Public propertyStatic memberNoGets a Cursor with which indicates that a particular region is invalid for a given operation.
Public propertyStatic memberNoneGets a special cursor that is invisible.
Public propertyStatic memberPenGets a pen Cursor.
Public propertyStatic memberScrollAllGets the scroll all Cursor.
Public propertyStatic memberScrollEGets the scroll east Cursor.
Public propertyStatic memberScrollNGets the scroll north Cursor.
Public propertyStatic memberScrollNEGets the scroll northeast cursor.
Public propertyStatic memberScrollNSGets the scroll north/south cursor.
Public propertyStatic memberScrollNWGets a scroll northwest cursor.
Public propertyStatic memberScrollSGets the scroll south Cursor.
Public propertyStatic memberScrollSEGets a south/east scrolling Cursor.
Public propertyStatic memberScrollSWGets the scroll southwest Cursor.
Public propertyStatic memberScrollWGets the scroll west Cursor.
Public propertyStatic memberScrollWEGets a west/east scrolling Cursor.
Public propertyStatic memberSizeAllGets a four-headed sizing Cursor, which consists of four joined arrows that point north, south, east, and west.
Public propertyStatic memberSizeNESWGets a two-headed northeast/southwest sizing Cursor.
Public propertyStatic memberSizeNSGets a two-headed north/south sizing Cursor.
Public propertyStatic memberSizeNWSEGets a two-headed northwest/southeast sizing Cursor.
Public propertyStatic memberSizeWEGets a two-headed west/east sizing Cursor.
Public propertyStatic memberUpArrowGets an up arrow Cursor, which is typically used to identify an insertion point.
Public propertyStatic memberWaitSpecifies a wait (or hourglass) Cursor.

This static class defines a set of default cursors common to applications.

The various static properties defining cursors are not directly usable in XAML, but are indirectly used through two possible mechanisms:

  • The Cursor class performs type conversion on any XAML attribute that takes type Cursor, such that a value of the CursorType enumeration specified as the attribute value will evaluate to one of the static Cursors properties.

  • A static property value can be used through the x:Static Markup Extension.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft