Skip to main content

LayoutSplitter Class

Allows you to resize a layout item at runtime.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v22.1.dll

NuGet Package: DevExpress.Wpf.Docking

Declaration

public class LayoutSplitter :
    FixedItem

Remarks

The following code sample adds LayoutSplitter to the application’s layout:

<Window ...
    xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
    <Grid>
        <dxdo:DockLayoutManager>
            <dxdo:LayoutGroup>
                <dxdo:LayoutGroup Orientation="Vertical">
                    <dxdo:LayoutGroup>
                        <dxdo:LabelItem Caption="First Name"/>
                        <dxdo:LayoutControlItem>
                            <TextBox x:Name="frstname" Text="Arnold"/>
                        </dxdo:LayoutControlItem>
                    </dxdo:LayoutGroup>
                    <dxdo:LayoutGroup>
                        <dxdo:LabelItem Caption="Last Name"/>
                        <dxdo:LayoutControlItem>
                            <TextBox x:Name="lstname" Text="Schwartz"/>
                        </dxdo:LayoutControlItem>
                    </dxdo:LayoutGroup>
                    <dxdo:LayoutGroup>
                        <dxdo:LabelItem Caption="Department"/>
                        <dxdo:LayoutControlItem>
                            <TextBox x:Name="dpt" Text="Engineering"/>
                        </dxdo:LayoutControlItem>
                    </dxdo:LayoutGroup>
                    <dxdo:LayoutGroup>
                        <dxdo:LabelItem Caption="Potision"/>
                        <dxdo:LayoutControlItem >
                            <TextBox x:Name="pstn" Text="Manager"/>
                        </dxdo:LayoutControlItem>
                    </dxdo:LayoutGroup>
                    <dxdo:LayoutGroup>
                        <dxdo:LabelItem Caption="Full Role"/>
                        <dxdo:LayoutSplitter/>
                        <dxdo:LayoutControlItem>
                            <TextBlock>
                                <TextBlock.Text>
                                    <MultiBinding StringFormat="{}{0} {1} {2} {3}">
                                        <Binding ElementName="dpt" Path="Text" />
                                        <Binding ElementName="pstn" Path="Text" />
                                        <Binding ElementName="frstname" Path="Text" />
                                        <Binding ElementName="lstname" Path="Text" />
                                    </MultiBinding>
                                </TextBlock.Text>
                            </TextBlock>
                        </dxdo:LayoutControlItem>
                    </dxdo:LayoutGroup>
                </dxdo:LayoutGroup>
            </dxdo:LayoutGroup>
        </dxdo:DockLayoutManager>
    </Grid>
<Window>

WPF DockLayoutManager - LayoutSplitter

Inheritance

Show 11 items
See Also