Class
ViewModeContentTemplateSelector

Provides a way to choose a DataTemplate for the ViewMode based on the data object and the data-bound element.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
public class ViewModeContentTemplateSelector : DataTemplateSelector

Inheritance: objectViewModeContentTemplateSelector

Constructors

ViewModeContentTemplateSelector()

Declaration

cs-api-definition
public ViewModeContentTemplateSelector()

Properties

AgendaViewModeButtonContentTemplate

Gets or sets the content template of the AgendaViewMode.

Declaration

cs-api-definition
public DataTemplate AgendaViewModeButtonContentTemplate { get; set; }

Property Value

DataTemplate

DayViewModeButtonContentTemplate

Gets or sets the content template of the DayViewMode.

Declaration

cs-api-definition
public DataTemplate DayViewModeButtonContentTemplate { get; set; }

Property Value

DataTemplate

MonthViewModeButtonContentTemplate

Gets or sets the content template of the MonthViewMode.

Declaration

cs-api-definition
public DataTemplate MonthViewModeButtonContentTemplate { get; set; }

Property Value

DataTemplate

TimelineViewModeButtonContentTemplate

Gets or sets the content template of the TimelineViewMode.

Declaration

cs-api-definition
public DataTemplate TimelineViewModeButtonContentTemplate { get; set; }

Property Value

DataTemplate

WeekViewModeButtonContentTemplate

Gets or sets the content template of the WeekViewMode.

Declaration

cs-api-definition
public DataTemplate WeekViewModeButtonContentTemplate { get; set; }

Property Value

DataTemplate

Methods

SelectTemplate(object, DependencyObject)

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

Declaration

cs-api-definition
public override DataTemplate SelectTemplate(object item, DependencyObject container)

Parameters

item

object

The data object for which to select the template.

container

DependencyObject

The data-bound object.

Returns

DataTemplate

Returns a custom DataTemplate or the default.