Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

iOS Large title with Shell

$
0
0

Hi guys,

I'm playing with shell and i'm facing an issue when i try to put a large title on my content page (iOS).

According to the documentation https://docs.microsoft.com/fr-fr/xamarin/xamarin-forms/platform/ios/page-large-title, i can use
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" ios:NavigationPage.PrefersLargeTitles="true" or ios:Page.LargeTitleDisplay="Always" to make it work, but as i'm doing everything based on a Shell app, i only have contentPage and not NavigationPage

`

<TabBar>
    <Tab Title="1">
        <ShellContent ContentTemplate="{DataTemplate pages:Page1}"/>
    </Tab>
    <Tab Title="2">
        <ShellContent ContentTemplate="{DataTemplate pages:Page2}"/>
    </Tab>
</TabBar>

`

I try to set it directly in the code behind but i have the same result. And if i embedded my ShellApp in a navigationPage in the App.xaml.cs, i have a NavigationPage must have a root Page before being used. Either call PushAsync with a valid Page, or pass a Page to the constructor before usage exception. Does anyone manage to make it works?

Thanks !


Viewing all articles
Browse latest Browse all 204402

Trending Articles