ToolBar Item Not Showing in Secondary (3 Dots) Xamarin.Forms UWP

SimonGhost 256 Reputation points
2020-11-24T10:54:14.06+00:00

Hello Everyone I Have Toolbar Items in my Xamarin.Forms Project its Working Good For Android , IOS.
But in UWP Project the Toolbar items Not Showing in Secondary (3 Dots) its Showing As Buttons in Navigation Bar.
and Toolbar Icon Not Working,But I am interested in how the toolbar appears in 3 dots i Search Long Time To Solve this problem but its not working.
this my Xaml Code:

<ContentPage.ToolbarItems>
<ToolbarItem Order="Secondary" Text="Home" Priority="1"/>
<ToolbarItem Order="Secondary" Text="Settings" Priority="2"/>
<ToolbarItem Order="Secondary" Text="Downloads" Priority="3"/>
</ContentPage.ToolbarItems>

and this screenshot:
42193-capture.png

i trying to Change Priority number and Order To Primary but nothing changed :(
I Hope You Help Me and Thanks :)

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,292 questions
Universal Windows Platform (UWP)
{count} votes

Accepted answer
  1. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,851 Reputation points
    2020-11-24T14:56:12.027+00:00

    Hello @SimonGhost ,
    Welcome to Microsoft Q&A,

    ToolBar Item Not Showing in Secondary (3 Dots) Xamarin.Forms UWP

    I have created a code sample if set Order as Secondary, it will show 3 dots in my side. we could not reproduce your issue, I suppose you have not insert current page into NavigationPage. Please do it like the following.

     var nav = new NavigationPage(new MainPage());  
    

    But How To Change Navigation Bar Color this

    If you want to edit Navigation Bar color, you could edit BarBackgroundColor property like this.

    var nav = new NavigationPage(new MainPage()) { BarBackgroundColor = Color.Red};  
    

    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.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful