<?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.AutomaticScaling" 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="Start Angle " VerticalOptions="Center"/>
      <Label x:Name="StartAngleLabel" VerticalOptions="Center"/>
      <Stepper x:Name="StartAngleStepper" Value="{Binding StartAngle,Mode=TwoWay}" Maximum="360" Increment="45" HorizontalOptions="EndAndExpand"/>
    </StackLayout>
    <StackLayout Orientation="Horizontal">
      <Label Text="Sweep Angle " VerticalOptions="Center"/>
      <Label x:Name="SweepAngleLabel" VerticalOptions="Center"/>
      <Stepper x:Name="SweepAngleStepper" Value="{Binding SweepAngle,Mode=TwoWay}" Minimum="45" Maximum="360" Increment="45" HorizontalOptions="EndAndExpand"/>
    </StackLayout>
    <xuni:XuniRadialGauge x:Name="Gauge" Min="{Binding Min}" Max="{Binding Max}" Value="{Binding Value}" StartAngle="{Binding StartAngle}" SweepAngle="{Binding SweepAngle}" ShowText="{Binding ShowText}" VerticalOptions="FillAndExpand"/>
  </StackLayout>
</ContentPage>