Sidebar-Klausuren war bisher ein Placeholder. Neue Seite zeigt alle Klausuren des Schuljahres sortiert nach abgeleiteter Dringlichkeit (Korrekturfortschritt statt manuellem Status), mit Detailbereich, Parallelkurs-Umschalter und Notenspiegel. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
34 lines
1.8 KiB
XML
34 lines
1.8 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.ExamGradingDialog"
|
|
x:DataType="vm:ExamGradingDialogViewModel"
|
|
Title="{Binding ExamTitle}"
|
|
Width="1000" Height="700" MinWidth="700" MinHeight="420"
|
|
CanResize="True" WindowStartupLocation="CenterOwner">
|
|
|
|
<Grid RowDefinitions="Auto,*,Auto" Margin="20">
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" Spacing="10" Margin="0,0,0,10">
|
|
<TextBlock Text="{Binding ExamTitle}" FontSize="16" FontWeight="SemiBold" VerticalAlignment="Center"/>
|
|
<TextBlock Text="{Binding ExamDateLabel}" FontSize="13" Opacity="0.6" VerticalAlignment="Center"/>
|
|
<Border Background="{DynamicResource SystemControlBackgroundAccentBrush}" CornerRadius="4" Padding="8,2"
|
|
IsVisible="{Binding NiveauLabel, Converter={x:Static StringConverters.IsNotNullOrEmpty}}">
|
|
<TextBlock Text="{Binding NiveauLabel}" FontSize="12" Foreground="White"/>
|
|
</Border>
|
|
<Button Content="Rest als abwesend markieren" Command="{Binding MarkRemainingAbsentCommand}"
|
|
Margin="20,0,0,0" VerticalAlignment="Center"
|
|
ToolTip.Tip="Setzt bei allen noch leeren Zeilen 'Abwesend' — für Schüler, die nicht nachschreiben."/>
|
|
</StackPanel>
|
|
|
|
<DataGrid Grid.Row="1" Name="ResultGrid"
|
|
ItemsSource="{Binding Rows}"
|
|
AutoGenerateColumns="False"
|
|
IsReadOnly="False"
|
|
GridLinesVisibility="All"
|
|
CanUserReorderColumns="False"
|
|
CanUserResizeColumns="True"/>
|
|
|
|
<Button Grid.Row="2" Content="Fertig" HorizontalAlignment="Right" Margin="0,12,0,0" Click="OnClose"/>
|
|
</Grid>
|
|
</Window>
|