问题
I like to change the cursor, when user clicks a button. I can use FrameworkElement.Cursor. But it only changes the cursor for my current App.
But I need my entire Windows cursor should change. I mean if you move the mouse outside the my app, it should show my cursor (not the default arrow).
How to achieve this?
回答1:
In order to accomplish this you have to change a registry value then perform an API call, check this MSDN post for more details on how to do it:
How to change the system’s cursor using Visual C#.NET?
Also check this link:
Changing global mouse cursor OR cursor scheme with C#?
来源:https://stackoverflow.com/questions/10345559/how-to-change-windows-cursor-in-wpf