50 lines
2.1 KiB
Plaintext
50 lines
2.1 KiB
Plaintext
|
<?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:viewmodel="clr-namespace:TodoDetails.ViewModel"
|
||
|
x:Class="TodoDetails.View.TodoDetailsPage"
|
||
|
x:DataType="viewmodel:TodoDetailsViewModel"
|
||
|
Title="{Binding Todo.Title}">
|
||
|
<ScrollView>
|
||
|
<Grid Padding="10">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto"/>
|
||
|
<RowDefinition Height="Auto"/>
|
||
|
<RowDefinition Height="Auto"/>
|
||
|
<RowDefinition/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Entry Text="{Binding Todo.Title}"
|
||
|
FontSize="20"
|
||
|
Grid.ColumnSpan="2"/>
|
||
|
<Picker Grid.Row="1"
|
||
|
Grid.ColumnSpan="2"
|
||
|
SelectedIndex="0">
|
||
|
<Picker.ItemsSource>
|
||
|
<x:Array Type="{x:Type x:String}">
|
||
|
<x:String>Default</x:String>
|
||
|
<x:String>XAML</x:String>
|
||
|
<x:String>MVVM</x:String>
|
||
|
<x:String>Database</x:String>
|
||
|
</x:Array>
|
||
|
</Picker.ItemsSource>
|
||
|
</Picker>
|
||
|
<HorizontalStackLayout Grid.Row="2"
|
||
|
VerticalOptions="Center"
|
||
|
Spacing="20">
|
||
|
<Label Text="Is Done"
|
||
|
VerticalTextAlignment="Center"/>
|
||
|
<CheckBox IsChecked="{Binding Todo.IsDone}"/>
|
||
|
</HorizontalStackLayout>
|
||
|
<DatePicker Date="{Binding Todo.DueDate}"
|
||
|
Grid.Row="2"
|
||
|
Grid.Column="1"/>
|
||
|
<Editor Text="{Binding Todo.Description}"
|
||
|
Grid.Row="3"
|
||
|
Grid.ColumnSpan="2"/>
|
||
|
</Grid>
|
||
|
</ScrollView>
|
||
|
</ContentPage>
|