Skip to content

Instantly share code, notes, and snippets.

@bryantwilliam
Last active March 1, 2017 05:39
Show Gist options
  • Save bryantwilliam/ac9a70dd7a71e113985bf316ae0c779e to your computer and use it in GitHub Desktop.
Save bryantwilliam/ac9a70dd7a71e113985bf316ae0c779e to your computer and use it in GitHub Desktop.
Page template I made for TheDayAhead xamarin app. (Background image, navigation bottom bar, namespace declarations)
<?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="TheDayAhead.DiaryPage"
xmlns:local="clr-namespace:TheDayAhead;assembly=TheDayAhead">
<ContentPage.Padding>
<OnPlatform x:TypeArguments="Thickness"
iOS="0, 20, 0, 0" />
</ContentPage.Padding>
<AbsoluteLayout>
<Image Source="{local:EmbeddedImage TheDayAhead.Resources.background.png}"
x:Name="image"
Aspect="AspectFill"
AbsoluteLayout.LayoutBounds="0,0,1,1"
AbsoluteLayout.LayoutFlags="All"/>
<!--
<View Padding="10"
AbsoluteLayout.LayoutBounds="0,0,1,.9"
AbsoluteLayout.LayoutFlags="All" >
<SubView />
</View>
-->
<local:BottomBar/>
</AbsoluteLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment