chaosifier / TabView

TabView control for Xamarin.Forms.
MIT License
124 stars 32 forks source link

hide header & selection #50

Closed tuke307 closed 3 years ago

tuke307 commented 3 years ago

Is it possible to hide the complete header and selection?

Screenshot 2020-12-15 195847

For now I do this;

HeaderBackgroundColor="Transparent"  
HeaderSelectionUnderlineColor="Transparent"

But that's not the perfect solution because it gaves me blank non usable area.

jakub-sobczuk commented 3 years ago

I am trying to achieve same thing :)

tuke307 commented 3 years ago

I switched to sharpnado's tabhostview. its fully customizable and you can hide the header

chaosifier commented 3 years ago

In the latest version you can design a custom header yourself. Here's an example :

<tabview:TabViewControl.TabHeaderItemTemplate>
    <DataTemplate>
        <StackLayout Padding="10,0">
            <Label
                Margin="0,10,0,5"
                FontSize="16"
                HorizontalTextAlignment="Center"
                Text="{Binding HeaderText}"/>
            <BoxView
                BackgroundColor="Red"
                HeightRequest="3"
                IsVisible="{Binding IsCurrent}" />
        </StackLayout>
    </DataTemplate>
</tabview:TabViewControl.TabHeaderItemTemplate>