简体   繁体   中英

ToolBarItem in xamarin.forms android and iOS

I have a ToolBarItem in my xaml, this works perfectly on my android but not on iOS. Is there a way to achieve this on both platforms? Also, my app on iOS breaks when i include "Icon=""ic_action_more_vert.png""

My xaml:

<ContentPage.ToolbarItems>


<ToolbarItem Text="About" 
                 Icon="ic_action_more_vert.png"
                 Priority="0"
                 Order="Secondary"
                 Clicked="ToolbarItem_Clicked"/>
    <ToolbarItem Text="Settings"
                 Icon="ic_action_more_vert.png"
                 Priority="0"
                 Order="Secondary"
                 Clicked="ToolbarItem_Clicked_1"/>



</ContentPage.ToolbarItems>

尝试更改两个ToolbarItem的优先级(1或0)和顺序(主要或次要)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM