How to add carticon in master detail page in Xamarin

Ashish Dhar 1 Reputation point
2021-04-01T06:37:53.1+00:00

I had created master detail page in Xamarin. Now I need to insert cart 83507-masterdetail.jpgicon in the master page.
How can I implement it.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
    2021-04-01T09:30:37.69+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Do you want to achieve the result like following screenshot?

    83671-image.png

    If so, please open your Home page. And add ToolbarItems

       <ContentPage.ToolbarItems>  
               <ToolbarItem Text="New"    
                            Icon="icon.png"    
                            Priority="0"    
                            Order="Primary"    
                            Clicked="ToolbarItem_Clicked"/>  
         
           </ContentPage.ToolbarItems>  
    

    ======================
    Update========================

    If you want to add number above cart icon, you can refer to this thread.

    83780-image.png

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    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.