<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:lng="clr-namespace:parkMonitor.language">
	<Style TargetType="{x:Type local:AlarmInfo}">
		<Setter Property="HorizontalContentAlignment" Value="Center"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type local:AlarmInfo}">
					<Grid>
						<ListBox Padding="0" Background="Transparent" BorderThickness="0" ItemsSource="{Binding ItemsSource,RelativeSource={RelativeSource TemplatedParent}}">
							<ListBox.ItemContainerStyle>
								<Style TargetType="ListBoxItem">
									<Setter Property="HorizontalAlignment" Value="Stretch" />
									<Style.Resources>
										<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#636363"/>
										<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="#636363"/>
										<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="#636363"/>
									</Style.Resources>
									<Style.Triggers>
										<Trigger Property="IsKeyboardFocusWithin" Value="true">
											<Setter Property="IsSelected" Value="true" />
										</Trigger>
									</Style.Triggers>
								</Style>
							</ListBox.ItemContainerStyle>
							<ListBox.ItemTemplate>
								<DataTemplate>
									<Grid Height="25">
										<Grid.ColumnDefinitions>
											<ColumnDefinition Width="15" />
											<ColumnDefinition Width="40" />
											<ColumnDefinition Width="60" />
											<ColumnDefinition Width="*"/>
										</Grid.ColumnDefinitions>

										<!--状态图标-->
										<Ellipse Visibility="Collapsed" Width="13" Height="13" Name="stuInfo">
											<Ellipse.Fill>
												<RadialGradientBrush>
													<GradientStop Color="#4cc2ff" Offset="0"/>
													<GradientStop Color="#4cc2ff" Offset="0.3"/>
													<GradientStop Color="#07aaff" Offset="1"/>
												</RadialGradientBrush>
											</Ellipse.Fill>
										</Ellipse>
										<Ellipse Visibility="Collapsed" Width="13" Height="13" Name="stuWarn">
											<Ellipse.Fill>
												<RadialGradientBrush>
													<GradientStop Color="#ecef9d" Offset="0"/>
													<GradientStop Color="#ecef9d" Offset="0.3"/>
													<GradientStop Color="#e5dd05" Offset="1"/>
												</RadialGradientBrush>
											</Ellipse.Fill>
										</Ellipse>
										<Ellipse Visibility="Collapsed" Width="13" Height="13" Name="stuError">
											<Ellipse.Fill>
												<RadialGradientBrush>
													<GradientStop Color="#f47373" Offset="0"/>
													<GradientStop Color="#f47373" Offset="0.3"/>
													<GradientStop Color="#e42323" Offset="1"/>
												</RadialGradientBrush>
											</Ellipse.Fill>
										</Ellipse>

										<TextBox Grid.Column="1" Foreground="#fff" Padding="5" Background="Transparent" BorderThickness="0" IsReadOnly="True" VerticalContentAlignment="Bottom" Text="{Binding StrStatus}"/>
										<TextBox Grid.Column="2" Foreground="#fff" Padding="5" Background="Transparent" BorderThickness="0" IsReadOnly="True" VerticalContentAlignment="Bottom" Text="{Binding DeviceName}"/>
										<TextBox Grid.Column="3" Foreground="#fff" Padding="5" Background="Transparent" BorderThickness="0" IsReadOnly="True" VerticalContentAlignment="Bottom" Text="{Binding Info}"/>
									</Grid>
									<DataTemplate.Triggers>
										<DataTrigger Binding="{Binding Status}" Value="Info">
											<Setter Property="Visibility" TargetName="stuInfo" Value="Visible"/>
										</DataTrigger>
										<DataTrigger Binding="{Binding Status}" Value="Warning">
											<Setter Property="Visibility" TargetName="stuWarn" Value="Visible"/>
										</DataTrigger>
										<DataTrigger Binding="{Binding Status}" Value="Error">
											<Setter Property="Visibility" TargetName="stuError" Value="Visible"/>
										</DataTrigger>
									</DataTemplate.Triggers>
								</DataTemplate>
							</ListBox.ItemTemplate>
						</ListBox>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>