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

A selector for the data template of resource type.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public class ResourceTypeTemplateSelector : DataTemplateSelector

Inheritance: objectResourceTypeTemplateSelector

Constructors

C#
public ResourceTypeTemplateSelector()

Properties

Gets or sets the multiple selection template.

C#
public DataTemplate MultipleSelectionTemplate { get; set; }
Property Value:

The multiple selection template.

Gets or sets the single selection template.

C#
public DataTemplate SingleSelectionTemplate { get; set; }
Property Value:

The single selection template.

Methods

When overridden in a derived class, returns a DataTemplate based on custom logic.

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

The data object for which to select the template.

containerDependencyObject

The data-bound object.

Returns:

DataTemplate

Returns a DataTemplate or null. The default value is null.