| | |
| | | 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}" |
| | | d:DesignHeight="450" d:DesignWidth="800"> |
| | |
| | | |
| | | <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" |
| | | |
| | | <TextBlock VerticalAlignment="Center" Text="系统设置" FontSize="{StaticResource TitleFontSize}" /> |
| | | <TabControl Grid.Row="1" x:Name="tabControl" |
| | | pu:TabControlHelper.ItemsSelectedBackground="{StaticResource HoriBar}" |
| | | pu:TabControlHelper.ItemsSelectedForeground="{StaticResource PrimaryColorContract}" |
| | | pu:TabControlHelper.ItemsFontSize="14" |
| | | pu:TabControlHelper.ItemsRibbonLineVisibility="Visible" |
| | | pu:TabControlHelper.ItemsRibbonLinePlacement="Right" |
| | | pu:TabControlHelper.HeaderPanelBorderThickness="0,0,1,0" |
| | | pu:TabControlHelper.HeaderPanelBorderBrush="{StaticResource CommonBoarder}" |
| | | pu:TabControlHelper.ItemsRibbonLineBrush="Transparent" |
| | | pu:TabControlHelper.ItemsSelectedRibbonLineBrush="{StaticResource PrimaryColorContract}" |
| | | pu:TabControlHelper.ItemsRibbonLineMargin="0,5,10,5" |
| | | pu:TabControlHelper.ItemsRibbonLineThickness="3" |
| | | Cursor="Hand" |
| | | pu:TabControlHelper.ItemsPadding="60,0" |
| | | TabStripPlacement="Left" |
| | | BorderBrush="{StaticResource 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> |