Functionality2.xaml 1.98 KB
Newer Older
Mattia's avatar
Mattia committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
<?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="SampleApp.Views.Functionality2">

    <ContentPage.Content>
        <Grid Margin="10,50">
            <Grid.RowDefinitions>
                <RowDefinition Height="80"></RowDefinition>
                <RowDefinition Height="80"></RowDefinition>
                <RowDefinition Height="80"></RowDefinition>
                <RowDefinition Height="80"></RowDefinition>
                <RowDefinition Height="80"></RowDefinition>
                <RowDefinition Height="60"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Label x:Name="FocusOrderLabel" Grid.Row="0" Grid.ColumnSpan="4"></Label>
            <Label x:Name="label1" Text="1" Grid.Row="1" Grid.Column="0" BackgroundColor="AliceBlue" VerticalTextAlignment="Center" HorizontalTextAlignment="Center"></Label>
            <Label x:Name="label2" Text="2" Grid.Row="2" Grid.Column="2" BackgroundColor="AntiqueWhite" VerticalTextAlignment="Center" HorizontalTextAlignment="Center"></Label>
            <Label x:Name="label3" Text="3" Grid.Row="3" Grid.Column="1" BackgroundColor="LightYellow" VerticalTextAlignment="Center" HorizontalTextAlignment="Center"></Label>
            <Label x:Name="label4" Text="4" Grid.Row="4" Grid.Column="3" BackgroundColor="LightCoral" VerticalTextAlignment="Center" HorizontalTextAlignment="Center"></Label>

            <Button Text="Change focus order to left-right" Grid.Row="5" Grid.ColumnSpan="4" BackgroundColor="Blue" TextColor="White" Clicked="OnButtonClicked" x:Name="ChangeButton"></Button>
        </Grid>
        
    </ContentPage.Content>
</ContentPage>