Maui for android app open iconic issue

Haviv Elbsz 2,071 Reputation points
2023-12-09T16:58:22.8233333+00:00

Hello all. using net maui in ver 17.9 preview and android emulator ver 34. Is it possible to add open icon to a Maui UI. if so how to do it. Thank you very much.

Developer technologies .NET .NET MAUI
{count} votes

Accepted answer
  1. Anonymous
    2023-12-12T02:12:12.8333333+00:00

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.