我正在使用Xamarin的ToolbarItems类与XAML:
<ContentPage.ToolbarItems>
<ToolbarItem Text="Sent Messages" Clicked="ToolbarItem_OnClicked"
Order="Primary" Priority="0" />
</ContentPage.ToolbarItems>
有没有一种方法可以更改所有工具栏项的背景颜色和文本颜色?
我正在使用Xamarin的ToolbarItems类与XAML:
<ContentPage.ToolbarItems>
<ToolbarItem Text="Sent Messages" Clicked="ToolbarItem_OnClicked"
Order="Primary" Priority="0" />
</ContentPage.ToolbarItems>
ToolbarItems
的背景颜色和文本颜色。new NavigationPage (new MyPage ()) {
BarBackgroundColor = Color.Green, BarTextColor = Color.White
};