<Window x:Class="parkMonitor.view.startNumMachineWin.StartNumMachineWin"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:parkMonitor.view.startNumMachineWin"
		xmlns:supUI="clr-namespace:com.superscene.ui"
		xmlns:util="clr-namespace:parkMonitor.view.util"
        xmlns:vm="clr-namespace:parkMonitor.viewModel"
		xmlns:lng="clr-namespace:parkMonitor.language"
        mc:Ignorable="d"
        Title="{lng:LngBind run}" Height="450" Width="800" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
	<Window.Resources>
		<ResourceDictionary>
			<vm:DesignStartNumMachineWinVM x:Key="designVM"/>
		</ResourceDictionary>
	</Window.Resources>

	<Grid Background="#727272">
		<Grid Margin="8">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="250" MaxWidth="500"/>
				<ColumnDefinition Width="8"/>
				<ColumnDefinition Width="597*"/>
			</Grid.ColumnDefinitions>

			<StackPanel Grid.Column="0">
				<Grid>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="70*"/>
						<ColumnDefinition Width="50*"/>
					</Grid.ColumnDefinitions>
					<supUI:TextBoxLabel Grid.Column="0" Margin="0,0,0,3" ContentColor="#fff" Foreground="#fff" CaretBrush="#fff" LeftWidth="50" Height="23" BorderBrush="#fff" d:DataContext="{StaticResource designVM}" Text="{Binding Ip,UpdateSourceTrigger=PropertyChanged}" Content="Ip：" x:Name="txtIp"/>
					<supUI:TextBoxLabel Grid.Column="1" Margin="0,0,0,3" ContentColor="#fff" Foreground="#fff" CaretBrush="#fff" LeftWidth="50" Height="23" BorderBrush="#fff" d:DataContext="{StaticResource designVM}" Text="{Binding StrPort,UpdateSourceTrigger=PropertyChanged}" Content="端口：" x:Name="txtPort"/>
				</Grid>
				<Grid>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="70*"/>
						<ColumnDefinition Width="50*"/>
					</Grid.ColumnDefinitions>
					<supUI:TextBoxLabel Grid.Column="0" Margin="0,0,0,3" ContentColor="#fff" Foreground="#fff" CaretBrush="#fff" LeftWidth="50" Height="23" BorderBrush="#fff" d:DataContext="{StaticResource designVM}" Text="{Binding UserName,UpdateSourceTrigger=PropertyChanged}" Content="用户名：" x:Name="txtUserName"/>
					<Grid Grid.Column="1">
						<Label Foreground="#fff" Content="密码："/>
						<PasswordBox Margin="50,0,0,0" Background="Transparent" Foreground="#fff" Padding="0" BorderThickness="0,0,0,1" BorderBrush="#fff" VerticalContentAlignment="Center" d:DataContext="{StaticResource designVM}" Password="123" x:Name="txtPassword"/>
					</Grid>
				</Grid>
				<Grid>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="50*"/>
						<ColumnDefinition Width="8"/>
						<ColumnDefinition Width="50*"/>
					</Grid.ColumnDefinitions>
					<!--<StackPanel Margin="0,0,0,3" Orientation="Horizontal">-->
					<Label Grid.Column="0" Margin="0,0,0,0" BorderThickness="0,0,0,2" BorderBrush="#6ceff7" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" Foreground="#fff" Cursor="Hand" Content="{lng:LngBind connect}" Name="btnConnect" MouseLeftButtonUp="btnConnect_MouseLeftButtonUp"/>
					<Label Grid.Column="2" Margin="0,0,0,0" BorderThickness="0,0,0,2" BorderBrush="#6ceff7" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" Foreground="#fff" Cursor="Hand" Content="{lng:LngBind search}" Name="btnSearch" MouseLeftButtonUp="btnSearch_MouseLeftButtonUp"/>
					<!--</StackPanel>-->
				</Grid>
			</StackPanel>
			<!--详细信息-->
			<Grid Margin="0,95,0,0">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="*"/>
					<ColumnDefinition Width="8"/>
					<ColumnDefinition Width="80"/>
				</Grid.ColumnDefinitions>
				
				<Grid>
					<!--<ComboBox VerticalAlignment="Top" Height="30"/>-->
					<!--<TreeViewItem Style="{DynamicResource TreeViewItemStyle1}"/>-->
					<Border CornerRadius="8" BorderBrush="#6ceff7" BorderThickness="2"/>
					<Grid Margin="8">
						<Label Foreground="#fff" VerticalAlignment="Top" Content="{lng:LngBind devList}"/>
						<ListBox Margin="0,25,0,0" Background="Transparent" BorderThickness="0" d:DataContext="{StaticResource designVM}" ItemsSource="{Binding DevList}" x:Name="lstDetailInfo">
							<ListBox.ItemContainerStyle>
								<Style TargetType="ListBoxItem">
									<!--<Setter Property="Cursor" Value="Hand"/>-->
									<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>
							</ListBox.ItemContainerStyle>
							<ListBox.ItemTemplate>
								<DataTemplate>
									<Grid Height="25" Background="Transparent" Name="grdMain">
										<Grid.ColumnDefinitions>
											<ColumnDefinition Width="15" />
											<ColumnDefinition Width="*" />
										</Grid.ColumnDefinitions>
										<Ellipse Width="13" Height="13" ToolTip="{lng:LngBind disconnect}" ToolTipService.InitialShowDelay="0" Name="stuOffline">
											<Ellipse.Fill>
												<RadialGradientBrush>
													<GradientStop Color="#d0d0d0" Offset="0"/>
													<GradientStop Color="#d0d0d0" Offset="0.3"/>
													<GradientStop Color="#8c8c8c" Offset="1"/>
												</RadialGradientBrush>
											</Ellipse.Fill>
										</Ellipse>

										<Ellipse Visibility="Collapsed" Width="13" Height="13" ToolTip="{lng:LngBind connect}" ToolTipService.InitialShowDelay="0" Name="stuNormal">
											<Ellipse.Fill>
												<RadialGradientBrush>
													<GradientStop Color="#6cf476" Offset="0"/>
													<GradientStop Color="#6cf476" Offset="0.3"/>
													<GradientStop Color="#1adb27" Offset="1"/>
												</RadialGradientBrush>
											</Ellipse.Fill>
										</Ellipse>
									
										<Label Grid.Column="1" Margin="3,0,0,0" Padding="0" Foreground="#fff" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="{Binding Data}"/>
									</Grid>
									<DataTemplate.Triggers>
										<DataTrigger Binding="{Binding IsConnected}" Value="True">
											<Setter Property="Visibility" TargetName="stuNormal" Value="Visible"/>
										</DataTrigger>
									</DataTemplate.Triggers>
								</DataTemplate>
							</ListBox.ItemTemplate>
						</ListBox>
					</Grid>
				</Grid>

				<Grid Grid.Column="2">
					<StackPanel>
						<Border Margin="0,0,0,3" Background="#6ceff7" CornerRadius="5">
							<Label Grid.Column="0" Margin="0,0,0,0" BorderThickness="0,0,0,2" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" Foreground="#000" Cursor="Hand" Content="输出" />
						</Border>
						<Label Grid.Column="0" Margin="0,0,0,0" BorderThickness="0,0,0,2" Background="#6ceff7" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" Foreground="#000" Cursor="Hand" Content="手动识别" />
						<Label Grid.Column="0" Margin="0,0,0,0" BorderThickness="0,0,0,2" Background="#6ceff7" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" Foreground="#000" Cursor="Hand" Content="录像" />
						<Label Grid.Column="0" Margin="0,0,0,0" BorderThickness="0,0,0,2" Background="#6ceff7" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" Foreground="#000" Cursor="Hand" Content="视频配置" />
						<Label Grid.Column="0" Margin="0,0,0,0" BorderThickness="0,0,0,2" Background="#6ceff7" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" Foreground="#000" Cursor="Hand" Content="连接状态" />
						<Label Grid.Column="0" Margin="0,0,0,0" BorderThickness="0,0,0,2" Background="#6ceff7" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" Foreground="#000" Cursor="Hand" Content="线圈配置" />
						<Label Grid.Column="0" Margin="0,0,0,0" BorderThickness="0,0,0,2" Background="#6ceff7" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" Foreground="#000" Cursor="Hand" Content="基本配置" />
					</StackPanel>
				</Grid>
			</Grid>

			<GridSplitter Grid.Column="1" Background="Transparent" HorizontalAlignment="Stretch"/>

			<Grid Grid.Column="2">
				<Grid.RowDefinitions>
					<RowDefinition Height="*"/>
					<RowDefinition Height="8"/>
					<RowDefinition Height="30"/>
				</Grid.RowDefinitions>
				<Border Grid.RowSpan="3" CornerRadius="8" BorderBrush="#6ceff7" BorderThickness="2"/>
				<!--命令-->
				<Grid Margin="8,0">
					<Label Foreground="#fff" VerticalAlignment="Top" Content="{lng:LngBind cmd}"/>
					<TextBox Margin="0,25,0,0" IsReadOnly="True" Background="Transparent" Foreground="#fff" BorderThickness="0" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" d:DataContext="{StaticResource designVM}" Text="{Binding CommanddLog,UpdateSourceTrigger=PropertyChanged}" Name="txtCmdLog" PreviewMouseLeftButtonUp="txtCmdLog_PreviewMouseLeftButtonUp"/>
				</Grid>
				<TextBox Margin="8,0" Grid.Row="3" Background="Transparent" Foreground="#fff" CaretBrush="#fff" BorderThickness="0" d:DataContext="{StaticResource designVM}" Text="{Binding CommanddInput,UpdateSourceTrigger=PropertyChanged}" Name="txtCmdInput" KeyUp="txtCmdInput_KeyUp"/>
			</Grid>
		</Grid>
	</Grid>
</Window>
