Anpassung am Sitzplan
This commit is contained in:
@@ -60,8 +60,8 @@
|
||||
HorizontalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
||||
<Grid RowDefinitions="Auto,*" IsVisible="{Binding HasSelectedPlan}" Margin="24">
|
||||
<Grid Grid.Row="0" ColumnDefinitions="*,Auto" Margin="0,0,0,18">
|
||||
<Grid RowDefinitions="Auto,*" ColumnDefinitions="*,220" IsVisible="{Binding HasSelectedPlan}" Margin="24">
|
||||
<Grid Grid.Row="0" Grid.ColumnSpan="2" ColumnDefinitions="*,Auto" Margin="0,0,0,18">
|
||||
<StackPanel Spacing="3">
|
||||
<TextBlock Text="{Binding PlanTitle}" FontSize="22" FontWeight="SemiBold"/>
|
||||
<TextBlock Text="{Binding PlanSubtitle}" Opacity="0.65"/>
|
||||
@@ -73,8 +73,13 @@
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
<ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Auto"
|
||||
VerticalScrollBarVisibility="Auto">
|
||||
<ScrollViewer x:Name="RoomScrollViewer" Grid.Row="1" Grid.Column="0"
|
||||
Margin="0,0,16,0"
|
||||
HorizontalScrollBarVisibility="Auto"
|
||||
VerticalScrollBarVisibility="Auto"
|
||||
DragDrop.AllowDrop="True"
|
||||
DragDrop.DragOver="OnRoomDragOver"
|
||||
DragDrop.DragLeave="OnRoomDragLeave">
|
||||
<StackPanel Spacing="14" HorizontalAlignment="Center">
|
||||
<Border Background="{DynamicResource SystemControlBackgroundChromeMediumLowBrush}"
|
||||
CornerRadius="6" Padding="36,8" HorizontalAlignment="Center">
|
||||
@@ -113,37 +118,45 @@
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
<Border DragDrop.AllowDrop="True" DragDrop.DragOver="OnUnassignedDragOver"
|
||||
DragDrop.Drop="OnUnassignedDrop"
|
||||
BorderBrush="{DynamicResource SystemControlForegroundBaseLowBrush}"
|
||||
BorderThickness="1" CornerRadius="7" Padding="12" Margin="5,8">
|
||||
<StackPanel Spacing="8">
|
||||
<TextBlock Text="NICHT ZUGEORDNET" FontSize="10" FontWeight="Bold" Opacity="0.5"/>
|
||||
<TextBlock Text="Schüler hierher ziehen, um einen Platz zu leeren."
|
||||
FontSize="11" Opacity="0.5"/>
|
||||
<!-- Die Schülerliste hat einen eigenen Scrollbereich und bleibt dadurch auch bei
|
||||
großen Räumen neben den aktuell sichtbaren Sitzplätzen erreichbar. -->
|
||||
<Border Grid.Row="1" Grid.Column="1"
|
||||
DragDrop.AllowDrop="True" DragDrop.DragOver="OnUnassignedDragOver"
|
||||
DragDrop.Drop="OnUnassignedDrop"
|
||||
BorderBrush="{DynamicResource SystemControlForegroundBaseLowBrush}"
|
||||
BorderThickness="1" CornerRadius="7" Padding="12">
|
||||
<Grid RowDefinitions="Auto,Auto,*">
|
||||
<TextBlock Grid.Row="0" Text="NICHT ZUGEORDNET" FontSize="10"
|
||||
FontWeight="Bold" Opacity="0.5"/>
|
||||
<TextBlock Grid.Row="1" Margin="0,5,0,10"
|
||||
Text="Schüler auf einen Platz ziehen. Belegte Plätze hierher ziehen, um sie zu leeren."
|
||||
TextWrapping="Wrap" FontSize="11" Opacity="0.5"/>
|
||||
<ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Disabled">
|
||||
<StackPanel Spacing="6">
|
||||
<ItemsControl ItemsSource="{Binding UnassignedStudents}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate><WrapPanel/></ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate x:DataType="vm:StudentSeatOption">
|
||||
<Border Background="{DynamicResource SystemAccentColorLight2}" CornerRadius="5"
|
||||
Padding="9,5" Margin="0,0,6,6"
|
||||
Padding="9,7"
|
||||
PointerPressed="OnDragSourcePressed"
|
||||
PointerMoved="OnDragSourceMoved"
|
||||
PointerReleased="OnDragSourceReleased">
|
||||
<TextBlock Text="{Binding DisplayName}" FontSize="12"/>
|
||||
<TextBlock Text="{Binding DisplayName}" FontSize="12" TextTrimming="CharacterEllipsis"/>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
<TextBlock Text="Alle Schüler sind zugeordnet." Classes="emptyhint"
|
||||
TextWrapping="Wrap"
|
||||
IsVisible="{Binding !UnassignedStudents.Count}"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user