Skip to content

Instantly share code, notes, and snippets.

@wsrzx
Last active November 8, 2017 10:50
Show Gist options
  • Save wsrzx/22aeff17283e329babe69c6d20b55776 to your computer and use it in GitHub Desktop.
Save wsrzx/22aeff17283e329babe69c6d20b55776 to your computer and use it in GitHub Desktop.
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