<Window x:Class="parkMonitor.view.startDeviceServerWin.StartDeviceServerWin"
        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.startDeviceClientWin"
		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 startServer}" Height="450" Width="800" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
	<Window.Resources>
		<ResourceDictionary>
			<vm:DesignStartDeviceClientWinVM x:Key="designVM"/>
		</ResourceDictionary>
	</Window.Resources>
	
	<Grid Background="#727272">
		<Grid Margin="8">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="180" MaxWidth="300"/>
				<ColumnDefinition Width="8"/>
				<ColumnDefinition Width="597*"/>
			</Grid.ColumnDefinitions>

			<StackPanel Grid.Column="0">
				<supUI:TextBoxLabel 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 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.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="连接" 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="断开" Name="btnDisconnect" MouseLeftButtonUp="btnDisconnect_MouseLeftButtonUp" />
					<!--</StackPanel>-->
				</Grid>
			</StackPanel>
			<!--详细信息-->
			<Grid Margin="0,90,0,0">
				<!--<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 detail}"/>
					<util:DevDetail Margin="0,25,0,0" d:DataContext="{StaticResource designVM}" ItemsSource="{Binding DevInfoDetail}" x:Name="lstDetailInfo"/>
				</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>
