Back to Devexpress

HeatmapAxis.CustomLabelItemTemplateSelector Property

wpf-devexpress-dot-xpf-dot-charts-dot-heatmap-dot-heatmapaxis-81e88c41.md

latest2.3 KB
Original Source

HeatmapAxis.CustomLabelItemTemplateSelector Property

Gets or sets an object that chooses a template for custom axis labels based on custom logic.

Namespace : DevExpress.Xpf.Charts.Heatmap

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public DataTemplateSelector CustomLabelItemTemplateSelector { get; set; }
vb
Public Property CustomLabelItemTemplateSelector As DataTemplateSelector

Property Value

TypeDescription
DataTemplateSelector

Chooses a template based on custom logic.

|

Remarks

The HeatmapAxis.CustomLabelItemTemplate property specifies a template that defines the appearance of custom axis labels. If you have more than one custom axis label template, you can implement custom logic to choose the required template:

  1. Create a template selector - a class that chooses a template based on the condition. This class should derive from the DataTemplateSelector class.
  2. Override the SelectTemplate method to return a template that meets the required condition.
  3. Assign the instance of the template selector class to the CustomLabelItemTemplateSelector property.

If you specify both the HeatmapAxis.CustomLabelItemTemplate and CustomLabelItemTemplateSelector, the Heatmap Control uses the template returned by the template selector.

See Also

HeatmapAxis Class

HeatmapAxis Members

DevExpress.Xpf.Charts.Heatmap Namespace