Xamarinフォームの新機能。Tabbedページの設定方法
私は以下のタブ付きページを持っています。私は次のことをしたかった:
1)タブの背景色は、白または白、色付きのものです。
2)タブの下線の色を変更します。
3)いくつのタブを使用できますか?
4)テキストのフォントサイズ。
5)各タブはcontentPageを持っているので、私のcontentpageが非常に長くて複雑なので、Tabの内側ではなく、contentPageを外部から参照する方法。
<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