dotnet / dotnet/maui

Custom Cursor when hovering over View on Desktop

Open
#4,552 16 comments 29 reactions 1 assignee Claimed by @Redth View on GitHub
area-controls-general legacy-area-desktop partner/cat 😻 proposal/open t/desktop t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 10h
Merged PRs (30d)
297

Description

On Desktop platforms, when hovering over a view, provide the ability to change the mouse cursor.

Could we provide this via an attached property, or perhaps provide an out of the box behaviour for this?

The API should provide a way to select and set one of the available system cursor types when the mouse/pointer is over a view. This could be an enum of cursor values.

Notes:
- Windows: https://docs.microsoft.com/en-us/uwp/api/windows.ui.core.corecursortype?view=winrt-22000
- MacCatalyst: https://gist.github.com/Redth/489cbbb934c22aa9db5412e73ee58134 this is done via a UIHoverGestureRecognizer, though we may need a click handler as well as the hover gesture stops when clicking

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.