I am changing cursor of a control in WPF
.
btn.Cursor = Cursors.Wait;
After carrying out an operaton, I want to revert back to the default cursor, I am did not find any Cursors.Default
, how to get the default cursor ?
You can override the cursor instead of setting the cursor, like this:
Mouse.OverrideCursor = Cursors.Wait;
Then when the operation is carried out, you can remove the override by setting it to null, like this:
Mouse.OverrideCursor = null;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With