Open janseris opened 2 years ago
In Windows Forms using System. Graphics, calculating hits is easily achieved as well, using GraphicsPath objects which provide required methods.
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Description
As far as I know, MAUI canvas can only draw but the elements are not interactive or they do not exist as UI objects. Something like that has been possible in WPF for 10+ years.
https://stackoverflow.com/questions/7556493/how-do-i-recognize-a-mouse-click-on-a-line
These objects can be composed etc. When will it come to MAUI? Thank you
Public API Changes
Shapes on canvas are UI elements with events, not just rendered pixels
Intended Use-Case
Interactive complicated shapes where computing click coordinates (or handling different events!) is very complicated. (all other than rectangle, point, line and circle) Example use case: interactive graphical shapes over image background. For example a situation on construction site which shows localities with problems and various items are displayed over the situation image and also miniatures of images are displayed and interactive points are localized into the image. Also the whole canvas shall be zoomable - zoom into any place and interact with objects in that part of the situation image.