Skip to content

Instantly share code, notes, and snippets.

@YhorbyMatias
Created May 4, 2017 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YhorbyMatias/16704c9d72d890a381373027cb3c7db0 to your computer and use it in GitHub Desktop.
Save YhorbyMatias/16704c9d72d890a381373027cb3c7db0 to your computer and use it in GitHub Desktop.
<?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:StarWarsPage" x:Class="StarWarsPage.MainPage">
<Grid>
<Image Source="war.jpg" Aspect="AspectFill" HorizontalOptions="Fill" VerticalOptions="Fill"/>
<ScrollView x:Name="TextScrollView" Orientation="Vertical" RotationX="24" Padding="16,800">
<Label x:Name="Text" Text="{StaticResource StarWarsText}" TextColor="Yellow" FontAttributes="Bold" FontSize="30"
HorizontalOptions="Fill"/>
</ScrollView>
</Grid>
<ContentPage.Resources>
<ResourceDictionary>
<x:String x:Key="StarWarsText">
It is a period of civil war.
Rebel spaceships, striking
from a hidden base, have won
their first victory against
the evil Galactic Empire.
During the battle, Rebel
spies managed to steal secret
plans to the Empire's
ultimate weapon, the DEATH
STAR, an armored space
station with enough power
to destroy an entire planet.
Pursued by the Empire's
sinister agents, Princess
Leia races home aboard her
starship, custodian of the
stolen plans that can save her
people and restore
freedom to the galaxy....
</x:String>
</ResourceDictionary>
</ContentPage.Resources>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment