Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Novidades do iOS e Xamarin.Forms
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
namespace iOSEleven
{
public partial class MyLargeTitlePage : ContentPage
{
public MyLargeTitlePage()
{
InitializeComponent();
On<Xamarin.Forms.PlatformConfiguration.iOS>().SetLargeTitleDisplay(LargeTitleDisplayMode.Automatic);
}
}
}
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
namespace iOSEleven
{
public partial class MyUseSafeAreaPage : ContentPage
{
public MyUseSafeAreaPage()
{
InitializeComponent();
On<Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
ios:Page.UseSafeArea="true" >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment