MouseDevice.OverrideCursor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the cursor for the entire application.
public:
property System::Windows::Input::Cursor ^ OverrideCursor { System::Windows::Input::Cursor ^ get(); void set(System::Windows::Input::Cursor ^ value); };
public System.Windows.Input.Cursor OverrideCursor { get; set; }
member this.OverrideCursor : System.Windows.Input.Cursor with get, set
Public Property OverrideCursor As Cursor
Property Value
The override cursor or null
if OverrideCursor is not set.
Remarks
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.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.