<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="NotesNet8.Views.NotePage"
             xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:viewModels="clr-namespace:NotesNet8.ViewModels"
             Title="NotePage">
    <ContentPage.BindingContext>
        <viewModels:NoteViewModel />
    </ContentPage.BindingContext>

    <VerticalStackLayout Margin="5" Spacing="10">
        <Editor x:Name="TextEditor"
                HeightRequest="100" Placeholder="Enter your note"
                Text="{Binding Text}" />
        <Grid ColumnDefinitions="*,*" ColumnSpacing="4">
            <Button Grid.Column="0"
                    Command="{Binding SaveCommand}"
                    Text="Save" />
            <Button Grid.Column="1"
                    Command="{Binding DeleteCommand}"
                    Text="Delete" />
        </Grid>
    </VerticalStackLayout>
</ContentPage>