Back to Devexpress

TreeListView.AlternateRowBackground Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-3e26558f.md

latest2.1 KB
Original Source

TreeListView.AlternateRowBackground Property

Gets or sets the brush used to paint the background of alternate nodes. 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 Brush AlternateRowBackground { get; set; }
vb
Public Property AlternateRowBackground As Brush

Property Value

TypeDescription
Brush

A Brush value.

|

Remarks

The TreeListControl allows you to alternate node colors. Use the AlternateRowBackground property to set the background color of alternate nodes. Use the TreeListView.AlternationCount property to set the alternate row frequency.

You can use theme dependent row alternation for even rows only. Set the TreeListView.UseEvenRowBackground to true to alternate even rows with the theme-dependent TreeListView.EvenRowBackground brush. Note, that you can specify a custom TableView.EvenRowBackground brush.

See Also

AlternationCount

UseEvenRowBackground

EvenRowBackground

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace