<UserControl
    x:Class="XplorePlane.Views.MotionControlPanelView"
    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"
    d:DesignHeight="220"
    d:DesignWidth="300"
    mc:Ignorable="d">
    <Grid Background="#FFFFFF">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Border
            Grid.Row="0"
            Background="#F0F0F0"
            BorderBrush="#DDDDDD"
            BorderThickness="0,0,0,1">
            <TextBlock
                Margin="8,4"
                HorizontalAlignment="Left"
                VerticalAlignment="Center"
                FontWeight="SemiBold"
                Foreground="#333333"
                Text="运动控制" />
        </Border>
        <ScrollViewer
            Grid.Row="1"
            HorizontalScrollBarVisibility="Disabled"
            VerticalScrollBarVisibility="Auto">
            <Grid Margin="6,4,6,4">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="42" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>

                <!--  XM  -->
                <TextBlock
                    Grid.Row="0"
                    Grid.Column="0"
                    Margin="0,0,4,3"
                    VerticalAlignment="Center"
                    Foreground="#333333"
                    Text="XM" />
                <TextBox
                    Grid.Row="0"
                    Grid.Column="1"
                    Margin="0,0,4,3"
                    Padding="3,2"
                    VerticalContentAlignment="Center"
                    Text="226555"
                    TextAlignment="Right" />
                <TextBlock
                    Grid.Row="0"
                    Grid.Column="2"
                    Margin="0,0,8,3"
                    VerticalAlignment="Center"
                    Foreground="#555555"
                    Text="μm" />
                <!--  XM 右侧额外控件: 速度  -->
                <TextBox
                    Grid.Row="0"
                    Grid.Column="3"
                    Width="44"
                    Margin="4,0,4,3"
                    Padding="2"
                    VerticalContentAlignment="Center"
                    Text="0.0"
                    TextAlignment="Right" />
                <TextBlock
                    Grid.Row="0"
                    Grid.Column="4"
                    Margin="0,0,0,3"
                    VerticalAlignment="Center"
                    Foreground="#555555"
                    Text="mm" />

                <!--  YM  -->
                <TextBlock
                    Grid.Row="1"
                    Grid.Column="0"
                    Margin="0,0,4,3"
                    VerticalAlignment="Center"
                    Foreground="#333333"
                    Text="YM" />
                <TextBox
                    Grid.Row="1"
                    Grid.Column="1"
                    Margin="0,0,4,3"
                    Padding="3,2"
                    VerticalContentAlignment="Center"
                    Text="214312"
                    TextAlignment="Right" />
                <TextBlock
                    Grid.Row="1"
                    Grid.Column="2"
                    Margin="0,0,8,3"
                    VerticalAlignment="Center"
                    Foreground="#555555"
                    Text="μm" />
                <TextBox
                    Grid.Row="1"
                    Grid.Column="3"
                    Width="44"
                    Margin="4,0,4,3"
                    Padding="2"
                    VerticalContentAlignment="Center"
                    Text="2.5"
                    TextAlignment="Right" />

                <!--  ZT  -->
                <TextBlock
                    Grid.Row="2"
                    Grid.Column="0"
                    Margin="0,0,4,3"
                    VerticalAlignment="Center"
                    Foreground="#333333"
                    Text="ZT" />
                <TextBox
                    Grid.Row="2"
                    Grid.Column="1"
                    Margin="0,0,4,3"
                    Padding="3,2"
                    VerticalContentAlignment="Center"
                    Text="-200000"
                    TextAlignment="Right" />
                <TextBlock
                    Grid.Row="2"
                    Grid.Column="2"
                    Margin="0,0,8,3"
                    VerticalAlignment="Center"
                    Foreground="#555555"
                    Text="μm" />

                <!--  ZD  -->
                <TextBlock
                    Grid.Row="3"
                    Grid.Column="0"
                    Margin="0,0,4,3"
                    VerticalAlignment="Center"
                    Foreground="#333333"
                    Text="ZD" />
                <TextBox
                    Grid.Row="3"
                    Grid.Column="1"
                    Margin="0,0,4,3"
                    Padding="3,2"
                    VerticalContentAlignment="Center"
                    Text="300000"
                    TextAlignment="Right" />
                <TextBlock
                    Grid.Row="3"
                    Grid.Column="2"
                    Margin="0,0,8,3"
                    VerticalAlignment="Center"
                    Foreground="#555555"
                    Text="μm" />

                <!--  TiltD  -->
                <TextBlock
                    Grid.Row="4"
                    Grid.Column="0"
                    Margin="0,0,4,3"
                    VerticalAlignment="Center"
                    Foreground="#333333"
                    Text="TiltD" />
                <TextBox
                    Grid.Row="4"
                    Grid.Column="1"
                    Margin="0,0,4,3"
                    Padding="3,2"
                    VerticalContentAlignment="Center"
                    Text="0"
                    TextAlignment="Right" />
                <TextBlock
                    Grid.Row="4"
                    Grid.Column="2"
                    Margin="0,0,8,3"
                    VerticalAlignment="Center"
                    Foreground="#555555"
                    Text="m°" />

                <!--  Dist  -->
                <TextBlock
                    Grid.Row="5"
                    Grid.Column="0"
                    Margin="0,0,4,0"
                    VerticalAlignment="Center"
                    Foreground="#333333"
                    Text="Dist" />
                <TextBox
                    Grid.Row="5"
                    Grid.Column="1"
                    Margin="0,0,4,0"
                    Padding="3,2"
                    VerticalContentAlignment="Center"
                    Text="311860.2"
                    TextAlignment="Right" />
                <TextBlock
                    Grid.Row="5"
                    Grid.Column="2"
                    Margin="0,0,8,0"
                    VerticalAlignment="Center"
                    Foreground="#555555"
                    Text="μm" />
                <TextBox
                    Grid.Row="5"
                    Grid.Column="3"
                    Width="44"
                    Margin="4,0,4,0"
                    Padding="2"
                    VerticalContentAlignment="Center"
                    Background="#FFFFEE"
                    Text="0"
                    TextAlignment="Right" />
            </Grid>
        </ScrollViewer>
    </Grid>

</UserControl>
