我正在使用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 >
答案 0 :(得分: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>