Skip to main content

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.v21.2.dll


public bool CanCollapse { get; set; }

Property Value

Type Description

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


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