WPF 中三路拆分器的 XAML

发布于 2024-08-12 15:28:50 字数 159 浏览 4 评论 0原文

我想以三种方式分割主窗口,网格分割器具有相同的外观风格。

嵌套在三个窗口中的所有控件都使用网格拆分器调整大小。

我正在尝试使用定义网格的行定义并将每个控件放置在第 1 行或第 1 列中来实现此目的。 如果任何机构有某种模板来启动这种布局,那就太好了。我不需要太复杂的示例。

I want to split the main window in three way Grid Spliiter same alike outlook style.

and all the controls nested inside in the three window is resized using Grid Splitter.

I am trying to do that using defining Row Definition of Grid and placing each control in Row 1 or column 1..
Its nice to have , if any body has some kind of template to kick start with this kind of layout.. I don't want too complex sample..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜尕妞 2024-08-19 15:28:50

这是一个完美的资源 - 构建 Outlook 2007 UI 克隆
您可以下载完整的演示(OutlookUI HOL Basic - Final),我想这就是您正在寻找的

编辑(评论后)

<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <GridSplitter Grid.Column="1" Width="1" />
    <GridSplitter Grid.Column="3" Width="1" />
</Grid>

This is a perfect resource - Build an Outlook 2007 UI Clone
You can download the full demo(OutlookUI HOL Basic - Final), I think it is what you are looking for

Edit(after comment)

<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <GridSplitter Grid.Column="1" Width="1" />
    <GridSplitter Grid.Column="3" Width="1" />
</Grid>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文