33 lines
1.7 KiB
XML
33 lines
1.7 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:viewmodels="clr-namespace:ChronoFlow.ViewModels"
|
|
mc:Ignorable="d">
|
|
<StackPanel Margin="20" Spacing="10">
|
|
<TextBlock Text="Meine Aufgaben" FontSize="24" FontWeight="Bold"/>
|
|
|
|
<ItemsControl ItemsSource="{Binding Eintraege}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border BorderThickness="1" BorderBrush="Gray" Padding="10" Margin="5">
|
|
<StackPanel Spacing="5">
|
|
<TextBlock Text="{Binding TaskDescription}" FontWeight="Bold"/>
|
|
<TextBlock Text="{Binding Date}" FontStyle="Italic"/>
|
|
<TextBlock Text="Priorität: {Binding Priority}" Foreground="DarkRed"/>
|
|
<CheckBox Content="Erledigt" IsChecked="{Binding IsCompleted}"/>
|
|
<TextBox Text="{Binding Comment}" Watermark="Kommentar eingeben..."/>
|
|
</StackPanel>
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
|
|
<Button Content="Änderungen speichern" Command="{Binding SaveChangesCommand}" HorizontalAlignment="Right"/>
|
|
<TextBlock Text="{Binding StatusText}"
|
|
Foreground="Green"
|
|
FontStyle="Italic"
|
|
FontWeight="SemiBold"
|
|
Margin="5"/>
|
|
</StackPanel>
|
|
</UserControl> |