Mouse::OverrideCursor Property
.NET Framework (current version)
Gets or sets the cursor for the entire application.
Assembly: PresentationCore (in PresentationCore.dll)
public: property Cursor^ OverrideCursor { static Cursor^ get(); static void set(Cursor^ value); }
Property Value
Type: System.Windows.Input::Cursor^The override cursor or null if the OverrideCursor is not set.
The following example shows an event handler for a RadioButton that is used to toggle the scope of a cursor change between a single element and the entire application. If the control that raised the event is the rbScopeElementRadioButton, a flag that denotes the scope of the cursor change is set and OverrideCursor is set to null. If the control that raised the event is the rbScopeApplicationRadioButton, a flag that denotes the scope of the cursor change is set and OverrideCursor is set to the Cursor property of the Border control named DisplayArea.
.NET Framework
Available since 3.0
Available since 3.0
Show: