<?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"
             x:Class="TodoList.Maui.Views.QuickEntryPage"
             Title="新建待办"
             BackgroundColor="White">
    
    <Grid Margin="20" RowDefinitions="Auto,Auto,Auto,Auto" ColumnDefinitions="*,*">
        <Label Grid.Row="0" Grid.ColumnSpan="2"
               Text="新建待办" 
               FontSize="18" 
               FontAttributes="Bold"
               TextColor="#333333"/>
        
        <Entry Grid.Row="1" Grid.ColumnSpan="2"
               x:Name="InputBox"
               Placeholder="输入待办事项..."
               Text="{Binding Content}"
               Margin="0,20,0,10"/>
        
        <Label Grid.Row="2" Grid.Column="0"
               Text="优先级:"
               VerticalOptions="Center"
               TextColor="#666666"
               FontSize="14"/>
        
        <Picker Grid.Row="2" Grid.Column="1"
                ItemsSource="{Binding Priorities}"
                SelectedItem="{Binding Priority}"
                Margin="10,0,0,10"/>
        
        <Button Grid.Row="3" Grid.Column="0"
                Text="取消"
                Command="{Binding CancelCommand}"
                BackgroundColor="#F0F0F0"
                TextColor="#333333"
                Margin="0,10,5,0"/>
        
        <Button Grid.Row="3" Grid.Column="1"
                Text="保存"
                Command="{Binding SaveCommand}"
                BackgroundColor="#007AFF"
                TextColor="White"
                Margin="5,10,0,0"/>
    </Grid>
</ContentPage>
