ClassViewModeContentTemplateSelector
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:
public class ViewModeContentTemplateSelector : DataTemplateSelector
Inheritance: objectViewModeContentTemplateSelector
Constructors
ViewModeContentTemplateSelector()
Declaration
public ViewModeContentTemplateSelector()
Properties
AgendaViewModeButtonContentTemplate
Gets or sets the content template of the AgendaViewMode.
Declaration
public DataTemplate AgendaViewModeButtonContentTemplate { get; set; }
Property Value
DataTemplate
DayViewModeButtonContentTemplate
Gets or sets the content template of the DayViewMode.
Declaration
public DataTemplate DayViewModeButtonContentTemplate { get; set; }
Property Value
DataTemplate
MonthViewModeButtonContentTemplate
Gets or sets the content template of the MonthViewMode.
Declaration
public DataTemplate MonthViewModeButtonContentTemplate { get; set; }
Property Value
DataTemplate
TimelineViewModeButtonContentTemplate
Gets or sets the content template of the TimelineViewMode.
Declaration
public DataTemplate TimelineViewModeButtonContentTemplate { get; set; }
Property Value
DataTemplate
WeekViewModeButtonContentTemplate
Gets or sets the content template of the WeekViewMode.
Declaration
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
public override DataTemplate SelectTemplate(object item, DependencyObject container)
Parameters
item
The data object for which to select the template.
container
DependencyObject
The data-bound object.
Returns
DataTemplate
Returns a custom DataTemplate or the default.