<?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:xuni="clr-namespace:Xuni.Forms.Gauge;assembly=Xuni.Forms.Gauge"
             x:Class="Gauges101.Direction" x:Name="page"
             Padding="20">
  <StackLayout>
    <Label BindingContext="{x:Reference page}" Text="{Binding Title}" IsVisible="{StaticResource TitleVisible}" HorizontalOptions="Center" Font="Large"/>
    <StackLayout Orientation="Horizontal">
      <Label Text="Direction" VerticalOptions="Center"/>
      <Picker x:Name="directionPicker" Title="Direction" SelectedIndex="{Binding DirectionSelectedIndex,Mode=TwoWay}" HorizontalOptions="FillAndExpand"/>
    </StackLayout>
    <StackLayout Orientation="{Binding DirectionOrientation}" VerticalOptions="FillAndExpand">
      <xuni:XuniLinearGauge Value="{Binding Value,Mode=TwoWay}" Direction="{Binding Direction}" ShowText="All" IsReadOnly="False" HorizontalOptions="{Binding DirectionHorizontalOptions}" VerticalOptions="{Binding DirectionVerticalOptions}"/>
      <xuni:XuniBulletGraph Value="{Binding Value,Mode=TwoWay}" Direction="{Binding Direction}" ShowText="All" IsReadOnly="False" Good="80" Bad="45" Target="90" HorizontalOptions="{Binding DirectionHorizontalOptions}" VerticalOptions="{Binding DirectionVerticalOptions}"/>
    </StackLayout>
  </StackLayout>
</ContentPage>