WdSetVelocity.xaml 3.17 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
<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>