34 lines
1.6 KiB
XML
34 lines
1.6 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:vm="clr-namespace:LehrerApp.Desktop.ViewModels.Groups"
|
||
x:Class="LehrerApp.Desktop.Views.Groups.AddSessionDialog"
|
||
x:DataType="vm:AddSessionDialogViewModel"
|
||
Title="{Binding DialogTitle}"
|
||
Width="380" SizeToContent="Height"
|
||
CanResize="False" WindowStartupLocation="CenterOwner">
|
||
|
||
<Grid RowDefinitions="*,Auto" Margin="24">
|
||
<StackPanel Grid.Row="0" Spacing="14">
|
||
<TextBlock Text="{Binding DialogTitle}" Classes="dialogtitle"/>
|
||
|
||
<StackPanel Spacing="4">
|
||
<TextBlock Text="Datum *" FontSize="12" Opacity="0.7"/>
|
||
<TextBox Text="{Binding DateText}" PlaceholderText="TT.MM.JJJJ" x:Name="DateBox"/>
|
||
<TextBlock Text="{Binding DateTextError}" Foreground="Red" FontSize="11"
|
||
IsVisible="{Binding DateTextError, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/>
|
||
</StackPanel>
|
||
|
||
<StackPanel Spacing="4">
|
||
<TextBlock Text="Kommentar (optional)" FontSize="12" Opacity="0.7"/>
|
||
<TextBox Text="{Binding Comment}" PlaceholderText="z. B. Stunde 12 – Säure-Base-Reaktion"
|
||
x:Name="CommentBox"/>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
|
||
<Grid Grid.Row="1" ColumnDefinitions="*,8,*" Margin="0,20,0,0">
|
||
<Button Grid.Column="0" Content="Abbrechen" HorizontalAlignment="Stretch" Click="OnCancel"/>
|
||
<Button Grid.Column="2" Content="{Binding SaveButtonText}" HorizontalAlignment="Stretch" Click="OnSave"/>
|
||
</Grid>
|
||
</Grid>
|
||
</Window>
|