Back to Devexpress

TreeListView.FormatConditionGeneratorTemplate Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-0a7233ff.md

latest2.4 KB
Original Source

TreeListView.FormatConditionGeneratorTemplate Property

Gets or sets a template that describes conditional formats. 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 DataTemplate FormatConditionGeneratorTemplate { get; set; }
vb
Public Property FormatConditionGeneratorTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A conditional format template.

|

Remarks

You can define conditional formatting rules in a ViewModel and apply them to the GridControl. To do this, follow the steps below:

  1. Create a collection of conditional formatting rules in a ViewModel.

  2. Specify a data template that generates format conditions:

  3. Assign the conditional formatting rule collection to the FormatConditionsSource property and the format condition template to the FormatConditionGeneratorTemplate property:

If you have multiple format condition templates, use the TreeListView.FormatConditionGeneratorTemplateSelector property to specify a template selector that chooses a template based on the format condition type.

Refer to the following help topic for more information: How to: Bind the Grid to a Collection of Conditional Formatting Rules.

See Also

FormatConditionsSource

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace