<UserControl x:Class="VIZ.Framework.UDPTestTool.MainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:VIZ.Framework.UDPTestTool"
             d:DataContext="{d:DesignInstance Type=local:MainViewModel}" 
             x:Name="uc" Background="White"
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="1000">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/VIZ.Framework.Common.Resource;component/Style/TextBox/TextBox_None.xaml"></ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="100"></RowDefinition>
            <RowDefinition Height="105"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="300"></RowDefinition>
        </Grid.RowDefinitions>
        <!-- 启动参数 -->
        <GroupBox Padding="10">
            <GroupBox.Header>
                <TextBlock Text="信息" FontSize="16" Foreground="#aa000000"></TextBlock>
            </GroupBox.Header>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Text="启动参数：" FontSize="14" VerticalAlignment="Top" Foreground="#bb000000"></TextBlock>
                <TextBox Grid.Column="1" AcceptsReturn="True" TextWrapping="Wrap" FontSize="14" IsReadOnly="True" Style="{StaticResource TextBox_None}"
                         Text="123123123"></TextBox>
            </Grid>
        </GroupBox>

        <!-- 设置 -->
        <GroupBox Padding="10" Grid.Row="1">
            <GroupBox.Header>
                <TextBlock Text="UDP设置" FontSize="16" Foreground="#aa000000"></TextBlock>
            </GroupBox.Header>
            <Grid Grid.Row="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="30"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="110"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="110"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <!-- 监听IP -->
                <TextBlock Text="监听IP：" Grid.Row="0" VerticalAlignment="Center" FontSize="14"  Foreground="#bb000000"></TextBlock>
                <TextBox Grid.Column="1" Height="24" VerticalContentAlignment="Center" FontSize="14"
                         ToolTip="监听IP"></TextBox>
                <CheckBox Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" 
                          VerticalContentAlignment="Center" Content="采用启动参数" Foreground="#bb000000"></CheckBox>
                <TextBox Grid.Column="3" Height="24" VerticalContentAlignment="Center"
                         ToolTip="启动参数名" Margin="0,0,10,0"></TextBox>

                <!-- 监听端口 -->
                <TextBlock Text="监听端口：" Grid.Row="1" VerticalAlignment="Center" FontSize="14"  Foreground="#bb000000"></TextBlock>
                <TextBox Grid.Row="1" Grid.Column="1" Height="24" VerticalContentAlignment="Center"></TextBox>
                <CheckBox Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" 
                          VerticalContentAlignment="Center" Content="采用启动参数" Foreground="#bb000000"></CheckBox>
                <TextBox Grid.Row="1" Grid.Column="3" Height="24" VerticalContentAlignment="Center"
                         ToolTip="启动参数名" Margin="0,0,10,0"></TextBox>

                <!-- 发送IP -->
                <TextBlock Text="发送IP：" Grid.Row="0" VerticalAlignment="Center" FontSize="14" Grid.Column="4" Foreground="#bb000000"></TextBlock>
                <TextBox Grid.Row="0" Grid.Column="5" Height="24" VerticalContentAlignment="Center"></TextBox>
                <CheckBox Grid.Row="0" Grid.Column="6" VerticalAlignment="Center" HorizontalAlignment="Center" 
                          VerticalContentAlignment="Center" Content="采用启动参数" Foreground="#bb000000"></CheckBox>
                <TextBox Grid.Row="0" Grid.Column="7" Height="24" VerticalContentAlignment="Center"
                         ToolTip="启动参数名" Margin="0,0,10,0"></TextBox>

                <!-- 发送端口 -->
                <TextBlock Text="发送端口：" Grid.Row="1" VerticalAlignment="Center" FontSize="14" Grid.Column="4" Foreground="#bb000000"></TextBlock>
                <TextBox Grid.Row="1" Grid.Column="5" Height="24" VerticalContentAlignment="Center"></TextBox>
                <CheckBox Grid.Row="1" Grid.Column="6" VerticalAlignment="Center" HorizontalAlignment="Center" 
                          VerticalContentAlignment="Center" Content="采用启动参数" Foreground="#bb000000"></CheckBox>
                <TextBox Grid.Row="1" Grid.Column="7" Height="24" VerticalContentAlignment="Center"
                         ToolTip="启动参数名" Margin="0,0,10,0"></TextBox>
            </Grid>
        </GroupBox>

        <!-- 发送预设 -->
        <GroupBox Padding="10" Grid.Row="2">
            <GroupBox.Header>
                <TextBlock Text="发送预设" FontSize="16" Foreground="#aa000000"></TextBlock>
            </GroupBox.Header>
            
        </GroupBox>
        <!-- 日志输出 -->
        <GroupBox Padding="10" Grid.Row="3">
            <GroupBox.Header>
                <TextBlock Text="日志" FontSize="16" Foreground="#aa000000"></TextBlock>
            </GroupBox.Header>
            <TextBox x:Name="tbLog" Grid.Row="3" Grid.ColumnSpan="2" AcceptsReturn="True" TextWrapping="Wrap" IsReadOnly="True" VerticalScrollBarVisibility="Visible"
                     FontSize="14" Text="123123123123"></TextBox>
        </GroupBox>
    </Grid>
</UserControl>
