<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MauiSampleFonts.MainPage"
             BackgroundColor="{DynamicResource PageBackgroundColor}">

  <ScrollView Padding="{OnPlatform iOS='30,60,30,30', Default='30'}">
    <StackLayout>
      <Grid RowSpacing="25" RowDefinitions="Auto,Auto,Auto,Auto,*">

        <Label Text="Hello, World!"
              Grid.Row="0"
              SemanticProperties.HeadingLevel="Level1"
              FontSize="32"
              HorizontalOptions="CenterAndExpand" />

        <Label Text="Welcome to .NET Multi-platform App UI"
              Grid.Row="1"
              SemanticProperties.Hint="Counts the number of times you click" 
              FontSize="16"
              HorizontalOptions="CenterAndExpand" />

        <Label Text="Current count: 0"
              Grid.Row="2"
              SemanticProperties.Hint="Counts the number of times you click"
              FontSize="18"
              FontAttributes="Bold"
              x:Name="CounterLabel"
              HorizontalOptions="Center" />

        <Button Text="Click me"
              Grid.Row="3"
              SemanticProperties.Hint="Counts the number of times you click"
              Clicked="OnCounterClicked"
              HorizontalOptions="Center" />

        <Image Grid.Row="4"
              Source="dotnet_bot.png"
              SemanticProperties.Description="Cute dotnet bot waving hi to you!"
              WidthRequest="300"
              HorizontalOptions="Center" />

      </Grid>
    </StackLayout>
  </ScrollView>
</ContentPage>
