﻿<hb:PluginControl x:Class="HMI.SettingControl.SettingControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:hb="clr-namespace:HMI.Base;assembly=HMI.Base"
             xmlns:local="clr-namespace:HMI.SettingControl"
             mc:Ignorable="d" 
             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"
             Loaded="UserControl_Loaded"
             Background="{StaticResource 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>

            <uic:PathImageConverter x:Key="path2Image"/>
            <uic:DataGridRowNumberConverter x:Key="rowNumber"/>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid>
        <Border Style="{StaticResource CardBoarder}">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition />
                </Grid.RowDefinitions>
                <TextBlock VerticalAlignment="Center" Text="系统设置" Margin="0,0,0,10"
                           FontSize="{StaticResource TitleFontSize}" />
                <TabControl Grid.Row="1"
pu:TabControlHelper.HeaderPanelAlignment="Front"
pu:TabControlHelper.ItemsBackground="{StaticResource PrimaryColorContract}"
pu:TabControlHelper.ItemsForeground="{StaticResource PrimaryColor}"
                            
pu:TabControlHelper.ItemsHeight="40"
pu:TabControlHelper.ItemsHorizontalHeaderAlignment="Left"
pu:TabControlHelper.ItemsHoverBackground="{StaticResource SecondPrimaryColor}"
pu:TabControlHelper.ItemsHoverForeground="{StaticResource SecondPrimaryColorContract}"
pu:TabControlHelper.ItemsRibbonLineMargin="0,5,0,5"
pu:TabControlHelper.ItemsRibbonLineThickness="4"
pu:TabControlHelper.ItemsRibbonLineVisibility="Visible"
pu:TabControlHelper.ItemsSelectedBackground="{StaticResource PrimaryColor}"
pu:TabControlHelper.ItemsSelectedForeground="{StaticResource PrimaryColorContract}"
pu:TabControlHelper.ItemsSelectedRibbonLineBrush="#FFFFFF"
pu:TabControlHelper.ItemsSelectedRibbonLineThickness="2"
TabStripPlacement="Left"
        BorderThickness="0"
        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>
            </Grid>
        </Border>
    </Grid>
</hb:PluginControl>
