chaosifier / TabView

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

How do I set full height to tab view? #26

Closed agharium closed 5 years ago

agharium commented 5 years ago

FillAndExpand does not work on my nested StackLayout nor the control itself has the VerticalOptions property. How to proceed?

<ContentPage.Content>
        <StackLayout
            HorizontalOptions="Fill"
            VerticalOptions="FillAndExpand">  // does not work
            <components:TabView
                HeaderBackgroundColor="Transparent"
                HeaderSelectionUnderlineColor="#4181EF"
                HeaderSelectionUnderlineThickness="2"
                HeaderTabTextColor="#262626"> // no 'VerticalOptions' (or any height options) here

                <components:TabItem 
                    HeaderText="Meus pedidos"
                    HeaderTextColor="#262626">
                    <StackLayout
                        HorizontalOptions="Fill"
                        VerticalOptions="FillAndExpand"> // works for the inner content, not the parent tab
                        <Label 
                            Text="Meus pedidos"
                            FontSize="Large"
                            HorizontalOptions="Center"
                            VerticalOptions="FillAndExpand"
                            VerticalTextAlignment="Center"/>
                    </StackLayout>
                </components:TabItem>
                ...
agharium commented 5 years ago

I'm dumb, there actually is a VerticalOptions property on TabView and it works flawlessly.