<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:notes="clr-namespace:MauiUI"
             x:Class="MauiUI.MainPage">

    <ScrollView>
        <VerticalStackLayout Padding="30, 60, 30, 30">
            <VerticalStackLayout.BackgroundColor>
                <OnPlatform x:TypeArguments="Color">
                    <On Platform="WinUI" Value="LightBlue"/>
                    <On Platform="Android" Value="LightGreen"/>
                    <On Platform="iOS" Value="LightRed"/>
                </OnPlatform>
            </VerticalStackLayout.BackgroundColor>

            <Label Text="Test"/>
            <Label Text="Notes" HorizontalOptions="Center" FontAttributes="Bold"
                   TextColor="{x:Static notes:SharedResources.FontColor}"/>
            <Editor x:Name="editor" Placeholder="Enter your note"
                    TextColor="{x:Static notes:SharedResources.FontColor}"
                    HeightRequest="{OnPlatform 100, Android=500, iOS=500}"/>
            <Grid ColumnDefinitions="Auto, 30, Auto">
                <Button Grid.Column="0" Text="Save" WidthRequest="100"
                        TextColor="{x:Static notes:SharedResources.FontColor}"
                        BackgroundColor="{x:Static notes:SharedResources.BackgroundColor}"
                        Clicked="OnSaveButton_Clicked"/>
                <Button Grid.Column="2" Text="Delete" WidthRequest="100"
                        TextColor="{x:Static notes:SharedResources.FontColor}"
                        BackgroundColor="{x:Static notes:SharedResources.BackgroundColor}"
                        Clicked="OnDeleteButton_Clicked"/>
            </Grid>
        </VerticalStackLayout>
    </ScrollView>

</ContentPage>
