Back to Devexpress

TreeListView.SwitchToCompactModeWidth Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-10d6ab7d.md

latest2.0 KB
Original Source

TreeListView.SwitchToCompactModeWidth Property

Gets or sets a maximum TreeListControl width when it renders its nodes in $compact mode. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public double SwitchToCompactModeWidth { get; set; }
vb
Public Property SwitchToCompactModeWidth As Double

Property Value

TypeDescription
Double

A maximum TreeListControl width when it renders its nodes in compact mode.

|

Remarks

TreeListControl can automatically re-draw its nodes with a custom template when its width decreases. This functionality allows you to build adaptive layouts where the tree-list stays user-friendly even in compact mode. When TreeListControl’s width is less than a value set by the SwitchToCompactModeWidth property, it renders its nodes using a custom template specified via TreeListView.DataRowCompactTemplate. In compact mode, TreeListControl displays a compact panel that provides a set of predefined filter items, and means for sorting and grouping.

See Also

Compact Mode

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace