<?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="WorkingWithImages.LocalImagesXaml">
	<ContentPage.Padding>
		<OnPlatform x:TypeArguments="Thickness">
			<OnPlatform.iOS>0, 20, 0, 0</OnPlatform.iOS>
		</OnPlatform>
	</ContentPage.Padding>
  <StackLayout VerticalOptions="Center" HorizontalOptions="Center">
    <Label Text="Image FileSource Xaml" />

    <!-- setting the source directly -->
    <Image Source="waterfront.jpg" />


    <!-- choosing a different image for each platform -->
    <Image IsVisible="false">
        <Image.Source>
            <OnPlatform x:TypeArguments="ImageSource">
                <OnPlatform.iOS><FileImageSource File="Icon.png"/></OnPlatform.iOS>
                <OnPlatform.Android><FileImageSource File="Icon.png"/></OnPlatform.Android>
                <OnPlatform.WinPhone><FileImageSource File="Icon.png"/></OnPlatform.WinPhone>
            </OnPlatform>
        </Image.Source>
    </Image>



    <Label Text="'waterfront.jpg' is referenced in Xaml. On iOS and Android multiple resolutions are supplied and resolved at runtime." />

    </StackLayout>
</ContentPage>