0

我怎样才能创建这个...

命令 http://img841.imageshack.us/img841/2631/46lc.jpg

在 WPF 中。

我已经阅读了很多关于使用堆栈面板与停靠面板的其他问题,但似乎无法重新创建我想要的内容。这是我目前拥有的..

命令2 http://img13.imageshack.us/img13/5374/7oft.jpg

和我的xaml ..

<DockPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="DarkGray" Grid.ColumnSpan="2" Grid.Row="1" LastChildFill="False" >
            <TextBlock Text="{StaticResource commandText}" Style="{StaticResource Heading2}" Margin="0,0,0,0" VerticalAlignment="Center" DockPanel.Dock="Left" />
            <TextBox Name="inputTextBox" VerticalAlignment="Center" HorizontalAlignment="Stretch" />
            <Button x:Name="termSend" Content="{StaticResource sendText}" Margin="0,0,0,8" DockPanel.Dock="Right" VerticalAlignment="Center" />
        </DockPanel>
4

1 回答 1

3
<DockPanel>
   <TextBlock VerticalAlignment="Center" Text="Command" DockPanel.Dock="Left"/>
   <Button Content="Send" VerticalAlignment="Center" DockPanel.Dock="Right"/>
   <TextBox VerticalAlignment="Center" Margin="5"/>
</DockPanel>
于 2013-07-23T14:51:50.447 回答