Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

TabbedPage Children overlay

$
0
0

Hi there,

I implemented a TabbedPage with two ContentPages as children.
My Code so far is this:

<TabbedPage x:Class="Classname"
            xmlns="http://xamarin.com/schemas/2014/forms"
            xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"      
            xmlns:tab="clr-namespace:LoomwarePromoterApp.Views.Pages;assembly=LoomwarePromoterApp"
            Padding="5,5,5,5">
    <TabbedPage.Children>
        <tab:Tab1 />
        <tab:Tab2 />
    </TabbedPage.Children>
</TabbedPage>

My Tab1 is a ContentPage with this Code (just as an Example):

<ContentPage x:Class="Classname"
             xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
    <Label HorizontalOptions="Center"
           Text="TAB1"
           VerticalOptions="Center" />
</ContentPage>

And my Tab2 is the same, only with an other text.

The Problem is, when I am starting it, both pages are overlayed at this point. My whole App is using a Master-Detail-Construct and therefore this TabbedPage is a Detailpage, as well.

Any suggestions, how I could manage it, that those two tabs are having an own view, and do not overlay?

Thanks


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>