<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">
	
	<!--Default Device TreeItem-->
	<ControlTemplate x:Key="DefaultDevTreeItem" TargetType="{x:Type TreeViewItem}">
		<Grid Background="Transparent" Name="grdBox">
			<supUI:BehaviorBox.List>
				<view:ItemsControlSelectBehavior/>
			</supUI:BehaviorBox.List>
			<Grid Margin="3" Name="grdData">
				<Label Width="65" Foreground="#fff" FontSize="11" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="{Binding Name}" Name="lblName"/>
			</Grid>
		</Grid>

		<ControlTemplate.Triggers>
			<DataTrigger Value="True">
				<DataTrigger.Binding>
					<local:OrBind>
						<Binding Path="IsMouseOver" RelativeSource="{RelativeSource Self}"/>
						<Binding Path="IsSelected" RelativeSource="{RelativeSource Self}"/>
					</local:OrBind>
				</DataTrigger.Binding>
				<Setter Property="Background" TargetName="grdBox" Value="#6ceff7"/>
				<Setter Property="Foreground" TargetName="lblName" Value="{StaticResource coTreeSltText}"/>
			</DataTrigger>

			<DataTrigger Binding="{Binding AlarmStatus}" Value="Normal">
				<Setter Property="Background" TargetName="grdData" Value="Transparent"/>
			</DataTrigger>
			<DataTrigger Binding="{Binding AlarmStatus}" Value="Offline">
				<Setter Property="Background" TargetName="grdData" Value="#8c8c8c"/>
				<Setter Property="Foreground" TargetName="lblName" Value="#fff"/>
			</DataTrigger>
			<DataTrigger Binding="{Binding AlarmStatus}" Value="Reset">
				<Setter Property="Background" TargetName="grdData" Value="#43b9cb"/>
				<Setter Property="Foreground" TargetName="lblName" Value="#fff"/>
			</DataTrigger>
			<DataTrigger Binding="{Binding AlarmStatus}" Value="Warning">
				<Setter Property="Background" TargetName="grdData" Value="#e5dd05"/>
				<Setter Property="Foreground" TargetName="lblName" Value="#fff"/>
			</DataTrigger>
			<DataTrigger Binding="{Binding AlarmStatus}" Value="Error">
				<Setter Property="Background" TargetName="grdData" Value="#e42323"/>
				<Setter Property="Foreground" TargetName="lblName" Value="#fff"/>
			</DataTrigger>
		</ControlTemplate.Triggers>
	</ControlTemplate>
</ResourceDictionary>