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

CarouselPage Embedded in TabbedPage

$
0
0

I'm currently working on an App that has a TabbedPage with 3 tabs on it. One of the tabs displays a bunch of images, so I'm using a CarouselPage to display them. The XAML for this page looks like this:


<?xml version="1.0" encoding="utf-8" ?>

<CarouselPage.ItemTemplate>
    <DataTemplate >
        <ContentPage  ![]()Padding="2, 0, 2, 50" Title="test">
            <Image Source="{Binding Image}" Aspect="AspectFill" />
        </ContentPage>
    </DataTemplate>
</CarouselPage.ItemTemplate>


The problem I am having is on the windows phone platform this looks like the attached file. The TabbedPage works as expected on that platform, showing the text for each, but when the CarouselPage is displayed, it shows the title of the page taking up about a third of the page, and doesn't make any sense in this scenario. If I remove the Title="Images", the CarouselPage works as expected but the TabbedPage shows no text for that tab. I haven't been able to find a solution to allow the app to display the title in the tabbedpage, but not display the huge title in the CarouselPage. Anyone know what I'm missing, or at lease a workaround?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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