Hello,
. I mean like I add Label in xaml also I want to add an open icon to my UI. in other words is it possible to add open icon as an element to UI.
You can do it by Geometries - .NET MAUI | Microsoft Learn, it will make a round image. You can click the icon to execute the task by TapGestureRecognizer
. You can refer to the following code.
<Image Source="icon1.png">
<Image.Clip>
<EllipseGeometry RadiusX="100"
RadiusY="100"
Center="180,180" />
</Image.Clip>
<Image.GestureRecognizers>
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/>
</Image.GestureRecognizers>
</Image>
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.