This topic has not yet been rated - Rate this topic

Cursors Class

Defines a set of default mouse pointer images for Silverlight.

System.Object
  System.Windows.Input.Cursors

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)
public static class Cursors

The Cursors type exposes the following members.

  Name Description
Public property Static member Supported by Silverlight for Windows Phone Arrow Represents an Arrow Cursor.
Public property Static member Supported by Silverlight for Windows Phone Eraser Represents an Eraser Cursor.
Public property Static member Supported by Silverlight for Windows Phone Hand Represents a Hand Cursor.
Public property Static member Supported by Silverlight for Windows Phone IBeam Represents an IBeam Cursor, which is typically used to show where the text cursor appears when the mouse is clicked.
Public property Static member Supported by Silverlight for Windows Phone None Represents a special Cursor that is invisible.
Public property Static member Supported by Silverlight for Windows Phone SizeNESW Represents a SizeNESW Cursor.
Public property Static member Supported by Silverlight for Windows Phone SizeNS Represents a SizeNS Cursor.
Public property Static member Supported by Silverlight for Windows Phone SizeNWSE Represents a SizeNWSE Cursor.
Public property Static member Supported by Silverlight for Windows Phone SizeWE Represents a SizeWE Cursor.
Public property Static member Supported by Silverlight for Windows Phone Stylus Represents a Stylus Cursor.
Public property Static member Supported by Silverlight for Windows Phone Wait Represents a Wait Cursor.
Top

This static class defines a set of default mouse pointer images common to Silverlight-based applications.

The various static properties defining cursors/mouse pointer images are used by the Cursor class, which performs type conversion on strings provided for any XAML attribute that takes type Cursor. For the XAML usage, see Cursor.

There is no Cursors.Default static property value. Instead, the default cursor is represented by setting a Cursor property value to null. A string value of Default is permissible as a XAML attribute usage for this case, to support version compatibility. The value None is not representative of the default. None specifically declares an invisible mouse pointer, even if the input system would have used a different default for that input case.

In code, you can set Cursor value properties using one of the Cursors static property values.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ