mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-08-18 15:33:33 +08:00
64 lines
2.8 KiB
XML
64 lines
2.8 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="LanMountainDesktop.Views.Components.ClassScheduleWidget">
|
|
<Border x:Name="RootBorder"
|
|
Background="{DynamicResource AdaptiveSurfaceRaisedBrush}"
|
|
BorderBrush="{DynamicResource AdaptiveButtonBorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="{DynamicResource DesignCornerRadiusComponent}"
|
|
Padding="14,12">
|
|
<Grid x:Name="LayoutGrid"
|
|
RowDefinitions="Auto,*">
|
|
<Grid x:Name="HeaderGrid"
|
|
ColumnDefinitions="*,Auto">
|
|
<StackPanel x:Name="DateGroup"
|
|
Orientation="Horizontal"
|
|
VerticalAlignment="Top">
|
|
<TextBlock x:Name="MonthTextBlock"
|
|
Text="7"
|
|
FontWeight="Bold"
|
|
TextTrimming="CharacterEllipsis" />
|
|
<TextBlock x:Name="SlashTextBlock"
|
|
Text="/"
|
|
FontWeight="Bold" />
|
|
<TextBlock x:Name="DayTextBlock"
|
|
Text="24"
|
|
FontWeight="Bold"
|
|
TextTrimming="CharacterEllipsis" />
|
|
</StackPanel>
|
|
|
|
<StackPanel x:Name="MetaStack"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top">
|
|
<TextBlock x:Name="WeekdayTextBlock"
|
|
Text="周一"
|
|
TextAlignment="Right"
|
|
FontWeight="SemiBold"
|
|
TextTrimming="CharacterEllipsis" />
|
|
<TextBlock x:Name="ClassCountTextBlock"
|
|
Text="0节课"
|
|
TextAlignment="Right"
|
|
FontWeight="SemiBold"
|
|
TextTrimming="CharacterEllipsis" />
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="1">
|
|
<ScrollViewer x:Name="ContentScrollViewer"
|
|
HorizontalScrollBarVisibility="Disabled"
|
|
VerticalScrollBarVisibility="Auto">
|
|
<StackPanel x:Name="CourseListPanel" />
|
|
</ScrollViewer>
|
|
|
|
<TextBlock x:Name="StatusTextBlock"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
TextAlignment="Center"
|
|
IsVisible="False"
|
|
TextWrapping="Wrap" />
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|