Cross-platform mechanism for setting the mouse cursor #938
Closed
mikeparker104
started this conversation in
New Feature Discussions
Replies: 2 comments
-
https://vladislavantonyuk.github.io/articles/Setting-a-cursor-for-.NET-MAUI-VisualElement |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closed as per the Community Stand-up discussion here: https://youtu.be/N9wMcBP4jtg?t=2889 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Provide the ability to change the mouse cursor when hovering over a View on desktop platforms.
Such an API would provide a way to set the cursor type for a given View using a cross-platform enum of cursor types available on both macOS and Windows. A key considerations is the selection of cursor types is limited on MacCatalyst compared to AppKit. However, it's technically possible to set the unsupported/undocumented AppKit cursor types using selectors e.g., Cocoa predefined resize mouse cursor?.
The cross-platform cursor type enum might include the following values:
Each cross-platform CursorType value would need mapping to the respective platform-specific cursor that is the best fit. For example:
It would be great to explore what this API could look like as part of this toolkit and whether the cursor could be set via an attached property and/or behaviour. Any input is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions