<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:DevDetail}">
		<Setter Property="HorizontalContentAlignment" Value="Center"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type local:DevDetail}">
					<Grid>
						<!--标题-->
						<Grid Margin="0" VerticalAlignment="Top">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="15"/>
								<ColumnDefinition Width="{Binding grdLenName,RelativeSource={RelativeSource TemplatedParent},Mode=TwoWay}" MinWidth="50"/>
								<ColumnDefinition Width="{Binding grdLenValue,RelativeSource={RelativeSource TemplatedParent},Mode=TwoWay}" MinWidth="50" />
							</Grid.ColumnDefinitions>
							<Label Grid.Column="0" Grid.ColumnSpan="2" BorderThickness="0,0,2,0" BorderBrush="#e4e4e4" Foreground="#fff" FontWeight="Bold" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="{lng:LngBind name}"/>
							<Label Grid.Column="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="#fff" FontWeight="Bold" Content="{lng:LngBind info}"/>
							<GridSplitter Grid.Column="1" Width="3" Background="Transparent"/>
						</Grid>

						<ListBox Margin="0,30,0,0" Padding="0" Background="Transparent" BorderThickness="0"
								 ScrollViewer.HorizontalScrollBarVisibility="Disabled"
								 ItemsSource="{Binding ItemsSource,RelativeSource={RelativeSource TemplatedParent}}"
								 SelectedIndex="{Binding SelectedIndex,RelativeSource={RelativeSource TemplatedParent},Mode=TwoWay}">
							<ListBox.ItemContainerStyle>
								<Style TargetType="ListBoxItem">
									<Setter Property="HorizontalAlignment" Value="Stretch" />
									<Setter Property="HorizontalContentAlignment" Value="Stretch" />
									<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}"/>
									<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 Background="Transparent">
										<supUI:BehaviorBox.List>
											<view:ItemsControlSelectBehavior/>
										</supUI:BehaviorBox.List>

										<Grid Visibility="Hidden">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="15"/>
												<ColumnDefinition Width="{Binding grdLenName,RelativeSource={RelativeSource AncestorType=local:DevDetail}}"/>
												<ColumnDefinition Width="{Binding grdLenValue,RelativeSource={RelativeSource AncestorType=local:DevDetail}}"/>
											</Grid.ColumnDefinitions>
											<Grid Grid.Column="1" x:Name="helpGridName"/>
											<Grid Grid.Column="2" x:Name="helpGridData"/>
										</Grid>
										<Grid Height="25">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="15" />
												<ColumnDefinition Width="{Binding grdLenName,RelativeSource={RelativeSource AncestorType=local:DevDetail}}"/>
												<ColumnDefinition Width="{Binding grdLenValue,RelativeSource={RelativeSource AncestorType=local:DevDetail}}"/>
											</Grid.ColumnDefinitions>

											<local:AlarmEllipse AlarmStatus="{Binding AlarmStatus}"/>
											<!--<Label Grid.Column="1" Foreground="#fff" Width="{Binding ActualWidth,ElementName=helpGridName}" Content="{Binding Name}"/>-->
											<TextBox Grid.Column="1" Width="{Binding ActualWidth,ElementName=helpGridName}" Foreground="#fff" Padding="4" Background="Transparent" BorderThickness="0" IsReadOnly="True" VerticalContentAlignment="Bottom" Text="{Binding Name}"/>
											<TextBox Grid.Column="2" Width="{Binding ActualWidth,ElementName=helpGridData}" Foreground="#fff" Padding="20,4,4,4" Background="Transparent" BorderThickness="0" IsReadOnly="True" VerticalContentAlignment="Bottom" Text="{Binding Data}"/>
											<StackPanel Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right">
												<supUI:MiniButton Margin="0,2,0,2" Background="#636363" Visibility="{local:ShowBind CanWrite}" Content="{lng:LngBind write}" x:Name="btnWrite" Command="{Binding CmdOnClickWrite,RelativeSource={RelativeSource AncestorType=local:DevDetail}}"/>
												<supUI:MiniButton Margin="3,2,0,2" Background="#636363" Visibility="{local:ShowBind CanReset}" Content="{lng:LngBind reset}" x:Name="btnReset" Command="{Binding CmdOnClickReset,RelativeSource={RelativeSource AncestorType=local:DevDetail}}"/>
												<!--<Label Foreground="#fff" Background="#636363" Visibility="{local:ShowBind CanWrite}" Cursor="Hand" Margin="0,0,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="{lng:LngBind write}" Name="btnWrite"/>-->
												<!--<Label Foreground="#fff" Background="#636363" Visibility="{local:ShowBind CanReset}" Cursor="Hand" Margin="4,0,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="{lng:LngBind reset}" Name="btnReset"/>-->
											</StackPanel>
										</Grid>
									</Grid>
								</DataTemplate>
							</ListBox.ItemTemplate>
						</ListBox>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>