40 lines
2.4 KiB
XML
40 lines
2.4 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="clr-namespace:LehrerApp.Desktop.ViewModels.Students"
|
|
xmlns:conv="clr-namespace:LehrerApp.Desktop.Converters"
|
|
x:Class="LehrerApp.Desktop.Views.Students.AttendanceCalendarConfigurationDialog"
|
|
x:DataType="vm:AttendanceCalendarConfigurationViewModel"
|
|
Title="Anwesenheitsdaten konfigurieren" Width="440" Height="360"
|
|
CanResize="False" WindowStartupLocation="CenterOwner">
|
|
<Grid RowDefinitions="*,Auto" Margin="24,20">
|
|
<StackPanel Spacing="16">
|
|
<TextBlock Text="Anwesenheitsdaten" Classes="dialogtitle"/>
|
|
<TextBlock Text="Diese Angaben steuern Kalender und Fehlzeitenliste im Elternbrief. Der Starttag wird automatisch auf den ersten Tag des gewählten Monats gesetzt."
|
|
FontSize="12" Opacity="0.65" TextWrapping="Wrap"/>
|
|
<StackPanel Spacing="4">
|
|
<TextBlock Text="Erster Monat" FontSize="12" Opacity="0.7"/>
|
|
<CalendarDatePicker SelectedDate="{Binding StartMonth, Converter={x:Static conv:DateTimeOffsetToDateTimeConverter.Instance}}"
|
|
HorizontalAlignment="Stretch"/>
|
|
</StackPanel>
|
|
<Grid ColumnDefinitions="*,12,*">
|
|
<StackPanel Spacing="4">
|
|
<TextBlock Text="Anzahl Monate" FontSize="12" Opacity="0.7"/>
|
|
<ComboBox ItemsSource="{Binding MonthCounts}" SelectedItem="{Binding MonthCount, Mode=TwoWay}"
|
|
HorizontalAlignment="Stretch"/>
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="2" Spacing="4">
|
|
<TextBlock Text="Darstellungsgröße" FontSize="12" Opacity="0.7"/>
|
|
<ComboBox ItemsSource="{Binding Sizes}" SelectedItem="{Binding SelectedSize, Mode=TwoWay}"
|
|
DisplayMemberBinding="{Binding DisplayName}" HorizontalAlignment="Stretch"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
<TextBlock Text="Bei mehreren Monaten wächst der Zeicheninhalt nach unten. Für drei große Monate sollte die Vorlage eine ausreichend hohe DRAWBOX oder eine FLOWDRAWBOX verwenden."
|
|
FontSize="11" Opacity="0.55" TextWrapping="Wrap"/>
|
|
</StackPanel>
|
|
<Grid Grid.Row="1" ColumnDefinitions="*,10,*" Margin="0,18,0,0">
|
|
<Button Grid.Column="0" Content="Abbrechen" HorizontalAlignment="Stretch" Click="OnCancel"/>
|
|
<Button Grid.Column="2" Content="Übernehmen" HorizontalAlignment="Stretch" Click="OnApply"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|