WPF Lover
WPF Lover

Reputation: 309

How to change Windows cursor in WPF?

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?

Upvotes: 3

Views: 1447

Answers (1)

Mohammed A. Fadil
Mohammed A. Fadil

Reputation: 9387

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#?

Upvotes: 1

Related Questions