mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-11 02:13:55 +00:00
Ios Safe Area Tweaks
This commit is contained in:
@@ -11,7 +11,15 @@ namespace qController.Cell
|
||||
public ObservableCollection<OSCListItem> items;
|
||||
public QCueListCell(QCueList qCueList)
|
||||
{
|
||||
Margin = new Thickness(10);
|
||||
switch (Device.RuntimePlatform)
|
||||
{
|
||||
case Device.iOS:
|
||||
Margin = new Thickness(10, 30, 10, 10);
|
||||
break;
|
||||
case Device.Android:
|
||||
Margin = new Thickness(10, 10, 10, 10);
|
||||
break;
|
||||
}
|
||||
Padding = new Thickness(10);
|
||||
items = new ObservableCollection<OSCListItem>();
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="qController.MenuPage">
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="qController.MenuPage">
|
||||
<StackLayout>
|
||||
<ListView x:Name="listView">
|
||||
</ListView>
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
using Xamarin.Forms;
|
||||
using qController.QItems;
|
||||
using System;
|
||||
using Xamarin.Forms.PlatformConfiguration;
|
||||
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
|
||||
|
||||
namespace qController
|
||||
{
|
||||
@@ -11,6 +13,7 @@ namespace qController
|
||||
public ObservableCollection<MenuPageItem> items { get; } = new ObservableCollection<MenuPageItem>();
|
||||
public MenuPage()
|
||||
{
|
||||
On<iOS>().SetUseSafeArea(true);
|
||||
Title = "Menu";
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user