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

iOS11 large titles in XAML

$
0
0

In reference to this post on the Xamarin blog: https://blog.xamarin.com/making-ios-11-even-easier-xamarin-forms/

I have set up what I think should be a proper ContentPage to use safe areas and large titles on NavigationPages in XAML (not exactly the topic of the post but I think I have the right idea).

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MyApp.Pages.MyPage" Title="Summary" xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" ios:NavigationPage.PrefersLargeTitles="true" ios:Page.UseSafeArea="true">

The page is invoked in C# like so:

Application.Current.MainPage = new NavigationPage(new SummaryPage());

The safe area works great, but the large titles don't display. Can you tell what I'm missing? I've read I should be able to do everything as a content page that I would do as a Navigation page, unless I'm misunderstanding: https://forums.xamarin.com/discussion/17704/navigationpage-in-xaml


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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