<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:view="clr-namespace:parkMonitor.view"
					xmlns:supUI="clr-namespace:com.superscene.ui"
					xmlns:lng="clr-namespace:parkMonitor.language">
	<Style TargetType="{x:Type local:DevTreeListBox}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type local:DevTreeListBox}">
					<Border
							BorderBrush="{Binding BorderBrush,RelativeSource={RelativeSource TemplatedParent}}"
							BorderThickness="{Binding BorderThickness,RelativeSource={RelativeSource TemplatedParent}}"
							>
						<Grid>
							<!--TreeView-->
							<TreeView Margin="0,0,0,0" Background="Transparent" BorderThickness="0" Foreground="#fff" VirtualizingPanel.IsVirtualizing="True" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsSource="{Binding ItemsSource,RelativeSource={RelativeSource TemplatedParent}}" Name="treeDev">
								<supUI:BehaviorBox.List>
									<view:ScrollBehavior/>
								</supUI:BehaviorBox.List>
								<TreeView.ItemContainerStyle>
									<Style TargetType="TreeViewItem" BasedOn="{StaticResource TreeViewItemImageStyle}">
										<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
										<Setter Property="IsExpanded" Value="True"/>
										<Setter Property="ItemsPanel">
											<Setter.Value>
												<ItemsPanelTemplate>
													<WrapPanel IsItemsHost="True" Orientation="Horizontal"/>
												</ItemsPanelTemplate>
											</Setter.Value>
										</Setter>
										<Style.Resources>
											<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#50dae3"/>
											<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="#6ceff7"/>
											<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="#50dae3"/>
										</Style.Resources>
									</Style>
								</TreeView.ItemContainerStyle>

								<TreeView.ItemTemplate>
									<HierarchicalDataTemplate ItemsSource="{Binding .}">
										<!--一级样式-->
										<Grid Name="grdBox">
											
											<Label FontWeight="Bold" Padding="2" FontSize="11" Content="{Binding Name}" Name="lblName">
												<Label.Style>
													<Style TargetType="Label">
														<Setter Property="Foreground" Value="#fff"/>
													</Style>
												</Label.Style>
											</Label>
										</Grid>

										<HierarchicalDataTemplate.Triggers>
											<Trigger Property="IsMouseOver" Value="True">
												<Setter Property="Background" TargetName="grdBox"  Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
												<Setter Property="Foreground" TargetName="lblName" Value="{StaticResource coTreeSltText}"/>
											</Trigger>
										</HierarchicalDataTemplate.Triggers>

										<HierarchicalDataTemplate.ItemContainerStyle>
											<Style TargetType="TreeViewItem">
												<!--<Setter Property="Background" Value="Transparent"/>-->
												<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
												<Setter Property="ToolTip" Value="{Binding OverInfo}"/>
												<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}"/>
												<!--<Setter Property="supUI:BehaviorBox.DList">
													<Setter.Value>
														<supUI:ListBehavior>
															<view:ItemsControlSelectBehavior/>
														</supUI:ListBehavior>
													</Setter.Value>
												</Setter>-->
												<!--二级样式-->
												<Style.Triggers>
													<!--Default-->
													<DataTrigger Binding="{Binding UiType}" Value="Default">
														<Setter Property="Template" Value="{StaticResource DefaultDevTreeItem}"/>
													</DataTrigger>
													<!--Image-->
													<DataTrigger Binding="{Binding UiType}" Value="Image">
														<Setter Property="Template" Value="{StaticResource ImageDevTreeItem}"/>
													</DataTrigger>
													<!--Image Value-->
													<DataTrigger Binding="{Binding UiType}" Value="ImageValue">
														<Setter Property="Template" Value="{StaticResource ImageValueDevTreeItem}"/>
													</DataTrigger>
													<!--Image List-->
													<DataTrigger Binding="{Binding UiType}" Value="ImageList">
														<Setter Property="Template" Value="{StaticResource ImageListDevTreeItem}"/>
													</DataTrigger>
													<!--Text List-->
													<DataTrigger Binding="{Binding UiType}" Value="TextList">
														<Setter Property="Template" Value="{StaticResource TextListDevTreeItem}"/>
													</DataTrigger>
													<!--<Trigger Property="IsKeyboardFocusWithin" Value="true">
														<Setter Property="IsSelected" Value="true" />
													</Trigger>-->
												</Style.Triggers>
											</Style>
										</HierarchicalDataTemplate.ItemContainerStyle>

										<HierarchicalDataTemplate.ItemTemplate>
											<HierarchicalDataTemplate ItemsSource="{x:Null}" />
										</HierarchicalDataTemplate.ItemTemplate>
									</HierarchicalDataTemplate>
								</TreeView.ItemTemplate>
							</TreeView>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>