Stundenplan: Dropdown für Unterrichtsansicht/Sitzplan/Planung/Planungsviewer

Die zwei Buttons in der "Heute"-Tagesliste mit teils vom Lesson-Status
abhängiger Doppelbedeutung ("Verlaufsplan ansehen"/"Zur Lerngruppe") waren
unklar. Ersetzt durch ein Dropdown mit vier ausdrücklich benannten Zielen;
drei nutzen bestehende Commands, "Sitzplan" (Sitzpläne-Tab) ist neu und
bisher nur indirekt über den Unterrichtsmodus erreichbar gewesen.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-27 17:03:11 +02:00
co-authored by Claude Sonnet 5
parent 442e3d5e3d
commit cd08bbbbc4
5 changed files with 136 additions and 11 deletions
@@ -111,17 +111,24 @@
Foreground="#8E6C00" FontWeight="SemiBold"
IsVisible="{Binding HasUnhandledHomework}"/>
</StackPanel>
<StackPanel Grid.Column="3" Orientation="Horizontal" Spacing="6" VerticalAlignment="Center">
<Button Content="▶ Unterricht" FontSize="11" Padding="9,4"
IsVisible="{Binding HasLesson}"
ToolTip.Tip="Unterrichtsmodus: Verlaufsplan und Sitzplan mit Schnellbewertung auf einem Bildschirm."
Command="{Binding $parent[ItemsControl].((vm:TimetableViewModel)DataContext).StartTeachingModeCommand}"
CommandParameter="{Binding}"/>
<Button Content="{Binding OpenButtonLabel}" FontSize="11" Padding="9,4"
IsVisible="{Binding HasGroupId}"
Command="{Binding $parent[ItemsControl].((vm:TimetableViewModel)DataContext).OpenTodayLessonCommand}"
CommandParameter="{Binding}"/>
</StackPanel>
<!-- Nutzer-Feedback: unklar, wie man aus der Tagesliste zwischen
Unterrichtsansicht/Sitzplan/Planung/Planungsviewer wechselt — jetzt
ein Dropdown mit ausdrücklich benannten Zielen statt zweier Buttons
mit vom Lesson-Status abhängiger Doppelbedeutung. Wiring/Routing in
TimetableView.axaml.cs (SelectionChanged setzt die Auswahl danach
bewusst zurück auf null — Menü-Charakter, keine dauerhafte
Auswahl). -->
<ComboBox Grid.Column="3" FontSize="11" MinWidth="150" VerticalAlignment="Center"
IsVisible="{Binding HasDestinationOptions}"
PlaceholderText="Öffnen ▾"
ItemsSource="{Binding DestinationOptions}"
SelectionChanged="OnLessonDestinationSelected">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:TimetableDestinationOption">
<TextBlock Text="{Binding Label}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</Grid>
</Border>
</DataTemplate>