<Window x:Class="YoseenPTZ.ViewDef.DebugView"
        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:YoseenPTZ.ViewDef"
        
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        xmlns:mdix="http://materialdesigninxaml.net/winfx/xaml/themes"
        xmlns:mvvm="clr-namespace:MVVM;assembly=MVVM"
        xmlns:mvvmhelpers="clr-namespace:MVVM.Helpers;assembly=MVVM"
        
        xmlns:resdef="clr-namespace:YoseenPTZ.ResourceDef"
        xmlns:coredef="clr-namespace:YoseenPTZ.CoreDef"

        WindowStartupLocation="CenterOwner"
        
        Background="{StaticResource MaterialDesignPaper}"
        TextElement.Foreground="{StaticResource MaterialDesignBody}"
        Style="{StaticResource MaterialDesignWindow}"
        mvvmhelpers:WindowHelper.ShowMinimizeButton="False"
        mvvmhelpers:WindowHelper.ShowMaximizeButton="False"
        Title="云台调试" Height="500" Width="400">
    <Grid>
        <Grid.Resources>
            <Style TargetType="Button" BasedOn="{StaticResource MaterialDesignOutlinedButton}">
                <Setter Property="Margin" Value="4,2,4,2"></Setter>
                <Setter Property="Width" Value="120"></Setter>
            </Style>

            <Style TargetType="TextBlock">
                <Setter Property="Margin" Value="4,2,4,2"></Setter>
                <Setter Property="HorizontalAlignment" Value="Left"></Setter>
                <Setter Property="VerticalAlignment" Value="Center"></Setter>
            </Style>

            <Style TargetType="TextBox">
                <Setter Property="Margin" Value="4,2,4,2"></Setter>
                <Setter Property="FontSize" Value="16"></Setter>
                <Setter Property="FontFamily" Value="楷体"></Setter>
            </Style>
        </Grid.Resources>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
            <ColumnDefinition Width="150"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <TextBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" x:Name="txtNote" IsReadOnly="True" ></TextBox>

        <TextBlock Grid.Row="1" Grid.Column="0" Text="请求"></TextBlock>
        <TextBox Grid.Row="1" Grid.Column="1" x:Name="txtReq" Width="200" VerticalAlignment="Center"></TextBox>

        <TextBlock Grid.Row="2" Grid.Column="0" Text="响应"></TextBlock>
        <TextBox Grid.Row="2" Grid.Column="1" x:Name="txtResp" Width="200" VerticalAlignment="Center"></TextBox>

        <Button Grid.Row="1" Grid.Column="2" Grid.RowSpan="2" x:Name="btnExecute" Content="执行" Click="btnExecute_Click"></Button>
    </Grid>
</Window>
