I want to override Mouse cursor on a button's MouseLeftButtonDown
event.
Overriding with standard cursor has no problem and it is something like as below:
Mouse.OverrideCursor = Cursors.Arrow;
Now, I want to override with some custom cursor. So, I tried doing as below:
I have added the MyCursor.cur
to my project and tried overriding the cursor as below.
var uriSource = new Uri("../MyCursor.cur", UriKind.Relative);
Mouse.OverrideCursor = new Cursor(uriSource.ToString());//Exception is thrown saying Absolute path is not valid.
I hope I was doing something wrong in getting the path of ".cur".
Could anyone please let me know the right way of achieving this.