New to Telerik UI for WPFStart a free 30-day trial

A DataTemplateSelector that selects a DataTemplate based on a IField's FieldInfo.

Definition

Namespace:Telerik.Windows.Controls.FieldList

Assembly:Telerik.Windows.Controls.PivotFieldList.dll

Syntax:

C#
public sealed class FieldBoxItemRolePresenterTemplateSelector : DataTemplateSelector

Inheritance: objectFieldBoxItemRolePresenterTemplateSelector

Constructors

C#
public FieldBoxItemRolePresenterTemplateSelector()

Properties

Gets or sets the DataTemplate used for the Dimension.

C#
public DataTemplate DimensionRoleTemplate { get; set; }

FolderRoleTemplate

DataTemplate

Gets or sets the DataTemplate used for the Folder.

C#
public DataTemplate FolderRoleTemplate { get; set; }

KpiRoleTemplate

DataTemplate

Gets or sets the DataTemplate used for the Kpi.

C#
public DataTemplate KpiRoleTemplate { get; set; }

NoneRoleTemplate

DataTemplate

Gets or sets the DataTemplate used for the None.

C#
public DataTemplate NoneRoleTemplate { get; set; }

OtherRoleTemplate

DataTemplate

Gets or sets the DataTemplate used for the Other.

C#
public DataTemplate OtherRoleTemplate { get; set; }

Gets or sets the DataTemplate used for the Selectable.

C#
public DataTemplate SelectableRoleTemplate { get; set; }

ValuesRoleTemplate

DataTemplate

Gets or sets the DataTemplate used for the Measure.

C#
public DataTemplate ValuesRoleTemplate { get; set; }

Methods

Selects a DataTemplate based on a IField's FieldInfo.

C#
public override DataTemplate SelectTemplate(object item, DependencyObject container)
Parameters:itemobject

The item for which a template is selected. Expected to be IField.

containerDependencyObject

The container.

Returns:

DataTemplate

The selected DataTemplate.