Permalink
Browse files

Add Events page as a TabbedPage.

  • Loading branch information...
ilanolkies committed May 31, 2018
1 parent d610e26 commit ff0e0f68fec259d029f8ab77f1733ab1e76a1846
@@ -82,6 +82,7 @@
<AndroidResource Include="Resources\mipmap-xxhdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\mipmap-xxxhdpi\Icon.png" />
<AndroidResource Include="Resources\mipmap-xxxhdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\drawable\events.png" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\drawable\" />
Binary file not shown.
@@ -158,4 +158,7 @@
<Name>GAExample</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\events.png" />
</ItemGroup>
</Project>
Binary file not shown.
@@ -7,4 +7,7 @@
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="3.0.0.482510" />
</ItemGroup>
<ItemGroup>
<Folder Include="Pages\" />
</ItemGroup>
</Project>
@@ -1,6 +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" xmlns:local="clr-namespace:GAExample" x:Class="GAExample.MainPage">
<StackLayout>
<Label Text="My first app connected to Google Analytics!" HorizontalOptions="Center" VerticalOptions="CenterAndExpand" />
</StackLayout>
</ContentPage>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pages="clr-namespace:GAExample.Pages"
x:Class="GAExample.MainPage">
<pages:EventsPage />
</TabbedPage>
@@ -1,17 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms;

namespace GAExample
{
public partial class MainPage : ContentPage
public partial class MainPage : TabbedPage
{
public MainPage()
{
InitializeComponent();
InitializeComponent();
}
}
}
@@ -0,0 +1,10 @@
<?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="GAExample.Pages.EventsPage"
Title="Events"
Icon="events.png">
<StackLayout>
<Label Text="Some events will show up here." VerticalOptions="CenterAndExpand" HorizontalOptions="Center"/>
</StackLayout>
</ContentPage>
@@ -0,0 +1,15 @@
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;

namespace GAExample.Pages
{
public partial class EventsPage : ContentPage
{
public EventsPage()
{
InitializeComponent();

On<Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
}
}
}

0 comments on commit ff0e0f6

Please sign in to comment.