我有以下选项卡式页面。我想要做到以下几点:
1)背景颜色的标签是白色或一个颜色,一个白色。
2)改变Tab下划线的颜色。
3)我可以有多少Tab?
4)Text的字体大小。 5)由于每个标签都有一个contentPage,所以如何从外部引用contentPage,而不是在Tab中,因为我的内容页非常长且复杂。
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
BackgroundColor="White"
x:Class="MainPage2">
<ContentPage Title ="Page1" Icon="itemIcon1" WidthRequest="200" BackgroundColor="White">
<ContentPage.Content>
<StackLayout VerticalOptions="Center" HorizontalOptions="Center">
<Label Text="T1">
</Label>
</StackLayout>
</ContentPage.Content>
</ContentPage>
<ContentPage Title ="Page2" Icon="itemIcon2" WidthRequest="200" BackgroundColor="White">
<ContentPage.Content>
<StackLayout VerticalOptions="Center" HorizontalOptions="Center">
<Label Text="T2">
</Label>
</StackLayout>
</ContentPage.Content>
</ContentPage>
<ContentPage Title ="Page3" Icon="itemIcon3" WidthRequest="200">
<ContentPage.Content>
<StackLayout VerticalOptions="Center" HorizontalOptions="Center">
<Label Text="T3">
</Label>
</StackLayout>
</ContentPage.Content>
</ContentPage>
</TabbedPage>
感谢
您在这里担心哪些平台?看起来只是Android,但是你是否也需要在iOS上进行大量的定制?特别是“标签的下划线” – SuavePirate