<Window x:Class="Flyad7_WPF.WdSetVelocity"
        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:Flyad7_WPF"
        mc:Ignorable="d"
        Title="WdSetVelocity" Height="252" Width="204">
    <Window.Resources>
        <Style TargetType="TextBlock" x:Key="TextBlockStyle_groupTitle">
            <Setter Property="FontSize" Value="16" />
        </Style>
        <Style TargetType="TextBlock" x:Key="TextBlockStyle_itemTitle">
            <Setter Property="Width" Value="60" />
            <Setter Property="Margin" Value="3" />
        </Style>
        <Style TargetType="TextBox" x:Key="TextBoxStyle_itemContent">
            <Setter Property="Width" Value="100"/>
            <Setter Property="Height" Value="23" />
            <Setter Property="Margin" Value="3" />
        </Style>
        <Style TargetType="Button" x:Key="ButtonStyle">
            <Setter Property="Height" Value="30"/>
            <Setter Property="Margin" Value="3"/>
            <Setter Property="Padding" Value="20,3"/>
        </Style>
    </Window.Resources>
    <Grid>
        <StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Style="{StaticResource TextBlockStyle_itemTitle}" Text="速度" />
                <TextBox Style="{StaticResource TextBoxStyle_itemContent}" Text="{Binding Velocity}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Style="{StaticResource TextBlockStyle_itemTitle}" Text="启动速度" />
                <TextBox Style="{StaticResource TextBoxStyle_itemContent}" Text="{Binding SVelocity}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Style="{StaticResource TextBlockStyle_itemTitle}" Text="加速时间" />
                <TextBox Style="{StaticResource TextBoxStyle_itemContent}" Text="{Binding ATime}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Style="{StaticResource TextBlockStyle_itemTitle}" Text="减速时间" />
                <TextBox Style="{StaticResource TextBoxStyle_itemContent}" Text="{Binding DTime}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Style="{StaticResource TextBlockStyle_itemTitle}" Text="归0速度1" />
                <TextBox Style="{StaticResource TextBoxStyle_itemContent}" Text="{Binding HVelocity1}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Style="{StaticResource TextBlockStyle_itemTitle}" Text="归0速度2" />
                <TextBox Style="{StaticResource TextBoxStyle_itemContent}" Text="{Binding HVelocity2}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Button Content="设置" Command="{Binding ApplyCmd}" Style="{StaticResource ButtonStyle}"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
