2727
2828 <ScrollViewer Padding =" 24,0,24,24" VerticalScrollBarVisibility =" Auto" >
2929 <StackPanel >
30-
30+
3131 <!-- 处理器 (CPU) 折叠卡片 -->
3232 <ui : CardExpander Margin =" 0,0,0,8" IsExpanded =" False" >
3333 <ui : CardExpander .Header>
629629 </Grid >
630630 </ui : CardExpander >
631631
632+ <!-- 引导顺序 (Boot Order) 折叠卡片 -->
633+ <ui : CardExpander Margin =" 0,0,0,8" IsExpanded =" False" >
634+ <ui : CardExpander .Header>
635+ <Grid MinHeight =" 38" Margin =" 8,0,12,0" >
636+ <Grid .ColumnDefinitions>
637+ <ColumnDefinition Width =" Auto" />
638+ <ColumnDefinition Width =" *" />
639+ <ColumnDefinition Width =" Auto" />
640+ <ColumnDefinition Width =" 15" />
641+ <ColumnDefinition Width =" Auto" />
642+ </Grid .ColumnDefinitions>
643+
644+ <!-- 左侧:图标与标题 -->
645+ <StackPanel Grid.Column=" 0" Orientation =" Horizontal" VerticalAlignment =" Center" >
646+ <ui : FontIcon FontSize =" 22" FontFamily =" {DynamicResource SegoeFluentIcons}" Glyph ="  " Margin =" -5,0,12,0" Foreground =" {ui:ThemeResource TextFillColorPrimaryBrush}" />
647+ <StackPanel VerticalAlignment =" Center" >
648+ <TextBlock Text =" 引导顺序" FontSize =" 16" Foreground =" {ui:ThemeResource TextFillColorPrimaryBrush}" />
649+ <TextBlock Text =" 引导顺序/描述" FontSize =" 12" Opacity =" 0.6" Margin =" 0,2,0,0" Foreground =" {ui:ThemeResource TextFillColorPrimaryBrush}" />
650+ </StackPanel >
651+ </StackPanel >
652+
653+ <!-- 中间:当前第一启动项摘要 -->
654+ <StackPanel Grid.Column=" 2" Orientation =" Horizontal" VerticalAlignment =" Center" >
655+ <TextBlock Text =" {Binding SelectedVm.FirstBootDevice, FallbackValue='启动设备:硬盘'}"
656+ FontSize =" 14" Opacity =" 0.8" VerticalAlignment =" Bottom" Foreground =" {ui:ThemeResource TextFillColorPrimaryBrush}" />
657+ </StackPanel >
658+
659+ <!-- 右侧:设置按钮 -->
660+ <ui : Button Grid.Column=" 4" Appearance =" Transparent" Padding =" 8,4" Command =" {Binding DataContext.GoToBootSettingsCommand, RelativeSource={RelativeSource AncestorType=UserControl}}" >
661+ <ui : SymbolIcon Symbol =" Settings24" FontSize =" 18" Foreground =" {ui:ThemeResource TextFillColorPrimaryBrush}" />
662+ </ui : Button >
663+ </Grid >
664+ </ui : CardExpander .Header>
665+
666+ <Grid Margin =" -5" >
667+ <!-- 引导设备列表 -->
668+ <ItemsControl ItemsSource =" {Binding SelectedVm.BootOrderItems}" >
669+ <ItemsControl .ItemsPanel>
670+ <ItemsPanelTemplate >
671+ <StackPanel Orientation =" Horizontal" Margin =" 12,8" />
672+ </ItemsPanelTemplate >
673+ </ItemsControl .ItemsPanel>
674+ <ItemsControl .ItemTemplate>
675+ <DataTemplate >
676+ <StackPanel Orientation =" Horizontal" VerticalAlignment =" Center" >
677+ <Border Background =" {ui:ThemeResource ControlFillColorTertiaryBrush}"
678+ BorderBrush =" {ui:ThemeResource CardStrokeColorDefaultBrush}"
679+ BorderThickness =" 1"
680+ CornerRadius =" 4"
681+ Padding =" 10,6" >
682+ <StackPanel Orientation =" Horizontal" >
683+ <ui : FontIcon Glyph =" {Binding Icon}"
684+ FontFamily =" {DynamicResource SegoeFluentIcons}"
685+ FontSize =" 14"
686+ Margin =" 0,0,8,0"
687+ Foreground =" {ui:ThemeResource TextFillColorPrimaryBrush}" />
688+ <TextBlock Text =" {Binding Name}"
689+ FontSize =" 13"
690+ VerticalAlignment =" Center"
691+ Foreground =" {ui:ThemeResource TextFillColorPrimaryBrush}" />
692+ </StackPanel >
693+ </Border >
694+ <ui : FontIcon Glyph ="  "
695+ FontSize =" 10"
696+ Margin =" 8,0"
697+ Opacity =" 0.3"
698+ VerticalAlignment =" Center"
699+ Foreground =" {ui:ThemeResource TextFillColorPrimaryBrush}"
700+ Visibility =" {Binding IsLast, Converter={StaticResource InverseBooleanToVisibilityConverter}, FallbackValue=Visible}" />
701+ </StackPanel >
702+ </DataTemplate >
703+ </ItemsControl .ItemTemplate>
704+ </ItemsControl >
705+ </Grid >
706+ </ui : CardExpander >
707+
632708 </StackPanel >
633709 </ScrollViewer >
634710</UserControl >
0 commit comments