Penny
Penny

Reputation: 23

UWP How can I change the cursor for a custom one?

If I have a .cur file which I want to use as a custom cursor in my UWP application, how would I do that?

Also, do cursors need to be black and white or can they have colour?

Upvotes: 1

Views: 811

Answers (1)

Stefan Wick  MSFT
Stefan Wick MSFT

Reputation: 13850

This can be done by creating a CoreCursor of type CoreCursorType.Custom and specifying the resource ID of your custom cursor file. Documentation is here:

https://learn.microsoft.com/en-us/uwp/api/Windows.UI.Core.CoreCursor

Upvotes: 1

Related Questions