<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:parkMonitor.view.util"
					xmlns:supUI="clr-namespace:com.superscene.ui">
	<SolidColorBrush x:Key="TabControlNormalBorderBrush" Color="#8C8E94"/>
	<Style TargetType="{x:Type local:TabMenu}">
		<Setter Property="Height" Value="{Binding SmallHeight,RelativeSource={RelativeSource Self}}"/>
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
		<Setter Property="Padding" Value="0"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush" Value="{StaticResource TabControlNormalBorderBrush}"/>
		<Setter Property="Background" Value="#F9F9F9"/>
		<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
		<Setter Property="VerticalContentAlignment" Value="Stretch"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type local:TabMenu}">
					<Grid ClipToBounds="true" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local">
						<Grid.ColumnDefinitions>
							<ColumnDefinition x:Name="ColumnDefinition0"/>
							<ColumnDefinition x:Name="ColumnDefinition1" Width="0"/>
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition x:Name="RowDefinition0" Height="Auto"/>
							<RowDefinition x:Name="RowDefinition1" Height="*"/>
						</Grid.RowDefinitions>
						<!--head-->
						<TabPanel x:Name="HeaderPanel" Grid.Column="0" IsItemsHost="true" Margin="2,2,2,0" Grid.Row="0" KeyboardNavigation.TabIndex="1" Panel.ZIndex="1" supUI:XEvtTrigger.MouseLeftButtonUp="{Binding CmdClickHeadBtn, RelativeSource={RelativeSource AncestorType={x:Type local:TabMenu}}}"/>

						<!--panel-->
						<Grid Visibility="Collapsed" Grid.Column="0" Grid.Row="1" Name="grdPanel">
							<Border x:Name="ContentPanel" Background="#636363" KeyboardNavigation.DirectionalNavigation="Contained" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local">
								<ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
							</Border>
						</Grid>

						<!--scale image-->
						<Border Padding="5,3" Margin="0,0,35,0" HorizontalAlignment="Right" VerticalAlignment="Center" supUI:XEvtTrigger.MouseLeftButtonUp="{Binding CmdClickScaleBtn, RelativeSource={RelativeSource AncestorType={x:Type local:TabMenu}}}" Name="bdScale">
							<Grid>
								<Image Width="20" Visibility="Collapsed" HorizontalAlignment="Right" VerticalAlignment="Bottom" Source="/parkMonitor;component/resource/image/menuToMin.png" Name="imgToMin"/>
								<Image Width="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Source="/parkMonitor;component/resource/image/menuToMax.png" Name="imgToMax"/>
							</Grid>

							<Border.Style>
								<Style TargetType="Border">
									<Setter Property="Background" Value="Transparent"/>
									<Style.Triggers>
										<Trigger Property="IsMouseOver" Value="True">
											<Setter Property="Background" Value="#808080"/>
										</Trigger>
									</Style.Triggers>
								</Style>
							</Border.Style>
						</Border>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsSmall" Value="False">
							<Setter Property="Height" Value="{Binding NormalHeight,RelativeSource={RelativeSource Self}}"/>
							<Setter Property="Visibility" TargetName="grdPanel" Value="Visible"/>
						</Trigger>
						<Trigger Property="IsFixed" Value="True">
							<Setter Property="Height" Value="{Binding NormalHeight,RelativeSource={RelativeSource Self}}"/>
							<Setter Property="Visibility" TargetName="imgToMin" Value="Visible"/>
							<Setter Property="Visibility" TargetName="imgToMax" Value="Collapsed"/>
							<Setter Property="Visibility" TargetName="grdPanel" Value="Visible"/>
							<Setter Property="ShowHeight" Value="{Binding NormalHeight,RelativeSource={RelativeSource Self}}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>