<UserControl
    x:Class="BPASmartClient.MorkS.View.Debug"
    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:local="clr-namespace:BPASmartClient.MorkS.View"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:vm="clr-namespace:BPASmartClient.MorkS.ViewModel"
    Name="调试界面"
    d:DesignHeight="450"
    d:DesignWidth="800"
    mc:Ignorable="d">

    <UserControl.DataContext>
        <vm:DebugViewModel />
    </UserControl.DataContext>

    <UserControl.Resources>
        <Style x:Key="TextboxStyle" TargetType="TextBox">
            <Setter Property="FontSize" Value="18" />
            <Setter Property="Background" Value="Transparent" />
            <Setter Property="Foreground" Value="{StaticResource TitleBorderColor}" />
            <Setter Property="Width" Value="150" />
            <Setter Property="BorderBrush" Value="{StaticResource TitleBorderColor}" />
            <Setter Property="BorderThickness" Value="1" />
            <Setter Property="CaretBrush" Value="Aqua" />
        </Style>
    </UserControl.Resources>

    <Grid Margin="20">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>

        <StackPanel>
            <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
                <TextBlock
                    FontSize="18"
                    Foreground="{StaticResource TitleBorderColor}"
                    Text="面条位置：" />
                <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding NoodleLoc}" />
            </StackPanel>

            <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
                <TextBlock
                    FontSize="18"
                    Foreground="{StaticResource TitleBorderColor}"
                    Text="面碗位置：" />
                <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding BowlLoc}" />
            </StackPanel>

            <StackPanel Orientation="Horizontal">
                <Button
                    Grid.Row="0"
                    Width="130"
                    HorizontalAlignment="Left"
                    Command="{Binding SimOrderCommand}"
                    Content="模拟订单"
                    Style="{StaticResource ButtonStyle}" />
                <Button
                    Grid.Row="0"
                    Width="120"
                    HorizontalAlignment="Left"
                    Command="{Binding InitCommand}"
                    Content="初始化设备"
                    Style="{StaticResource ButtonStyle}" />
            </StackPanel>
        </StackPanel>



    </Grid>
</UserControl>
