MouseDevice.OverrideCursor Property


Gets or sets the cursor for the entire application.

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

public Cursor OverrideCursor { get; set; }

Property Value

Type: System.Windows.Input.Cursor

The override cursor or null if OverrideCursor is not set.

The Cursor that OverrideCursor is set to will be applied to the whole application.

To clear the override Cursor, set OverrideCursor to null.

Setting OverrideCursor to None will force the mouse cursor not to be displayed, but mouse events are still processed.

.NET Framework
Available since 3.0
Return to top