Skip to main content
All docs
V26.1
  • DiagramContainer.CanCollapse Property

    Specifies whether the container displays the expand/collapse button. This is a dependency property.

    Namespace: DevExpress.Xpf.Diagram

    Assembly: DevExpress.Xpf.Diagram.v26.1.dll

    NuGet Package: DevExpress.Wpf.Diagram

    Declaration

    public bool CanCollapse { get; set; }

    Property Value

    Type Description
    Boolean

    true to display the expand/collapse button within the container; otherwise, false. By default, false.

    Remarks

    Set the AllowCollapseContainers property to true to display the expand/collapse button for all containers. The CanCollapse property allows you to control the collapse functionality for individual containers.

    The image below illustrates a collapsible container.

    Collapsible Container

    See Also