WeatherView.xaml 1011 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. x:Class="MyWeather.View.WeatherView"
  5. Title="Weather">
  6. <StackLayout Padding="10" Spacing="10">
  7. <Entry Text="{Binding Location}"/>
  8. <StackLayout Orientation="Horizontal">
  9. <Label Text="Use Imperial?" VerticalTextAlignment="Center"/>
  10. <Switch IsToggled="{Binding IsImperial}"/>
  11. </StackLayout>
  12. <StackLayout Orientation="Horizontal">
  13. <Label Text="Use GPS?" VerticalTextAlignment="Center"/>
  14. <Switch IsToggled="{Binding UseGPS}"/>
  15. </StackLayout>
  16. <Button Text="Get Weather" Command="{Binding GetWeatherCommand}"/>
  17. <Label Text="{Binding Temp}" FontSize="30"/>
  18. <Label Text="{Binding Condition}"/>
  19. <ActivityIndicator IsRunning="{Binding IsBusy}" IsVisible="{Binding IsBusy}"/>
  20. </StackLayout>
  21. </ContentPage>