<?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="XamarinStudy.Views.SampleElementPage3">
    <ContentPage.Content>
        <StackLayout>
            <Image Source="https://cdn4.iconfinder.com/data/icons/social-media-2146/512/28_social-256.png"/>
            <Image Source="{OnPlatform Android=droid.png, UWP=assets/droid.png}" BindingContext="{x:Reference imageSizePicker}" HeightRequest="{x:Binding SelectedItem}" Aspect="AspectFit"/>
            <Picker x:Name="imageSizePicker" Title="Image Size" SelectedItem="50" SelectedIndexChanged="imageSizePicker_SelectedIndexChanged">
                <Picker.Items>
                    <x:String>50</x:String>
                    <x:String>100</x:String>
                    <x:String>150</x:String>
                </Picker.Items>
            </Picker>
            <Label x:Name="datePickerLabel" BindingContext="{x:Reference dataPicker}" Text="{x:Binding Date, StringFormat='{0:yyyy-MM-dd}'}"></Label>
            <DatePicker x:Name="dataPicker" Format="yyyy-MM-dd"></DatePicker>
            <Label x:Name="timePickerLabel" BindingContext="{x:Reference timePicker}" Text="{x:Binding Time, StringFormat='{0:hh\\:mm\\.fff}'}"/>
            <TimePicker x:Name="timePicker"/>
            <ActivityIndicator x:Name="activityIndicator" Color="Salmon" IsRunning="False"/>
            <WebView x:Name="webView" Source="https://google.com" VerticalOptions="FillAndExpand" Navigating="webView_Navigating" Navigated="webView_Navigated"/>
        </StackLayout>
    </ContentPage.Content>
</ContentPage>