1

我正在使用 DevExpress 的 DockLayoutManager。在 DockLayoutManager 中,我使用 LayoutGroup,在 LayoutGroup 中,我有三个垂直堆叠的 LayoutPanel。当我取消固定控件时,我希望所有面板都停靠在左侧。默认情况下,其中两个在顶部,一个在左侧。XAML 中是否有我必须设置的属性?

 <dxd:DockLayoutManager x:Name="dockLayoutManager"  >

        <dxd:LayoutGroup Orientation="Horizontal" x:Name="LayoutRoot">
            <dxd:LayoutGroup Orientation="Vertical">
                <dxd:LayoutPanel ItemWidth="200"
                             Caption="Statuswort"
                             Padding="1">
                    <TextBox BorderThickness="0" />
                </dxd:LayoutPanel>
                <dxd:LayoutPanel ItemWidth="200"
                             Caption="Steuerwort"
                             Padding="1">
                    <TextBox BorderThickness="0" />
                </dxd:LayoutPanel>
                <dxd:LayoutPanel ItemWidth="200"
                             Caption="Übersicht"
                             Padding="1">
                    <TextBox BorderThickness="0" />
                </dxd:LayoutPanel>
            </dxd:LayoutGroup >
4

1 回答 1

0

使用AutoHideGroup.AutoHideType附加属性:

<dxd:DockLayoutManager>
    <dxd:LayoutGroup Orientation="Horizontal" x:Name="LayoutRoot">
        <dxd:LayoutGroup Orientation="Vertical">
            <dxd:LayoutPanel ItemWidth="200" dxd:AutoHideGroup.AutoHideType="Left"
                         Caption="Statuswort"
                         Padding="1">
                <TextBox BorderThickness="0" />
            </dxd:LayoutPanel>
            <dxd:LayoutPanel ItemWidth="200" dxd:AutoHideGroup.AutoHideType="Left"
                         Caption="Steuerwort"
                         Padding="1">
                <TextBox BorderThickness="0" />
            </dxd:LayoutPanel>
            <dxd:LayoutPanel ItemWidth="200" dxd:AutoHideGroup.AutoHideType="Left"
                         Caption="Übersicht"
                         Padding="1">
                <TextBox BorderThickness="0" />
            </dxd:LayoutPanel>
        </dxd:LayoutGroup>
    </dxd:LayoutGroup>
</dxd:DockLayoutManager>
于 2013-06-19T14:30:05.170 回答