alielie
2026-06-15 f08871fe7d148d667f2f11f80f64de71a0d9504c
HMI.SettingControl/SettingControl.xaml
@@ -9,15 +9,14 @@
             xmlns:uic="clr-namespace:HMI.UI.Converter;assembly=HMI.UI"
            xmlns:pw="https://opensource.panuon.com/wpf"
            xmlns:pu="https://opensource.panuon.com/wpf-ui"
            xmlns:dp="clr-namespace:HMI.UI;assembly=HMI.UI"
            xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"
             Loaded="UserControl_Loaded"
             Background="{StaticResource WorkspaceBackground}"
             Background="{DynamicResource WorkspaceBackground}"
             d:DesignHeight="450" d:DesignWidth="800">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <pu:StyleDictionary Includes="TabControl" />
                <ResourceDictionary Source="/HMI.UI;component/Style/PanuonResource.xaml"/>
                <ResourceDictionary Source="/HMI.UI;component/Resources/Font/Font.xaml"/>
            </ResourceDictionary.MergedDictionaries>
@@ -28,33 +27,35 @@
    <Grid>
        <Border Style="{StaticResource CardBoarder}">
            <Grid>
            <Grid dp:GridHelper.Space="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition />
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <TextBlock VerticalAlignment="Center" Text="系统设置" Margin="0,0,0,10"
                           FontSize="{StaticResource TitleFontSize}" />
                <TabControl Grid.Row="1"
        BorderBrush="{StaticResource CommonBoarder}"
                <TextBlock VerticalAlignment="Center" Text="{DynamicResource Setting.SystemSetting}" FontSize="{StaticResource TitleFontSize}" />
                <TabControl Grid.Row="1" x:Name="tabControl"
                            pu:TabControlHelper.ItemsSelectedBackground="{DynamicResource HoriBar}"
                            pu:TabControlHelper.ItemsSelectedForeground="{DynamicResource PrimaryColorContract}"
                            pu:TabControlHelper.ItemsFontSize="14"
                            pu:TabControlHelper.ItemsRibbonLineVisibility="Visible"
                            pu:TabControlHelper.ItemsRibbonLinePlacement="Right"
                            pu:TabControlHelper.HeaderPanelBorderThickness="0,0,1,0"
                            pu:TabControlHelper.HeaderPanelBorderBrush="{DynamicResource CommonBoarder}"
                            pu:TabControlHelper.ItemsRibbonLineBrush="Transparent"
                            pu:TabControlHelper.ItemsSelectedRibbonLineBrush="{DynamicResource PrimaryColorContract}"
                            pu:TabControlHelper.ItemsRibbonLineMargin="0,5,10,5"
                            pu:TabControlHelper.ItemsRibbonLineThickness="3"
                            Cursor="Hand"
                            pu:TabControlHelper.ItemsPadding="60,0"
                            TabStripPlacement="Left"
        BorderBrush="{DynamicResource CommonBoarder}"
        ItemsSource="{Binding TabItems}">
                <TabControl.Resources>
                    <Style TargetType="TabControl" BasedOn="{StaticResource {x:Static pu:StyleKeys.TabControlStyle}}">
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="TabControl">
                                    <Border BorderBrush="Black" BorderThickness="1">
                                            <ContentPresenter/>
                                        </Border>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </TabControl.Resources>
                </TabControl>
                <StackPanel Grid.Row="2" Style="{StaticResource ButtonGroup}">
                    <Button Style="{StaticResource ResetBtn}" x:Name="resetBtn" Click="Button_Click"/>
                    <Button Style="{StaticResource SaveBtn}" x:Name="saveBtn" Click="Button_Click"/>
                </StackPanel>
            </Grid>
        </Border>
    </Grid>