【问题标题】:WPF - Layouts designWPF - 布局设计
【发布时间】:2018-02-13 00:11:18
【问题描述】:

我正在尝试在 WPF 窗口中设计布局,但遇到了一些麻烦。 enter image description here

这就是我所追求的布局。我尝试过网格、堆叠面板等。但我无法获得正确的对接或它们重叠。

有什么想法吗??谢谢!

【问题讨论】:

  • 你应该得到一本 WPF 书籍并学习基础知识。

标签: wpf xaml layout


【解决方案1】:

先做 2 行,然后是 3 列的第二行

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="20*"/>
        <RowDefinition Height="80*"/>
    </Grid.RowDefinitions>
    <Grid Grid.Row="1">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="20*"/>
            <ColumnDefinition Width="60*"/>
            <ColumnDefinition Width="20*"/>
        </Grid.ColumnDefinitions>
    </Grid>
</Grid>

【讨论】:

    猜你喜欢
    • 2011-07-21
    • 2019-01-05
    • 1970-01-01
    • 1970-01-01
    • 2019-06-26
    • 2012-09-30
    • 1970-01-01
    • 2012-08-21
    • 1970-01-01
    相关资源
    最近更新 更多