Class ViewModeContentTemplateSelector
Provides a way to choose a DataTemplate for the ViewMode based on the data object and the data-bound element.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class ViewModeContentTemplateSelector : DataTemplateSelector
Constructors
ViewModeContentTemplateSelector()
Declaration
public ViewModeContentTemplateSelector()
Properties
AgendaViewModeButtonContentTemplate
Gets or sets the content template of the AgendaViewMode.
Declaration
public DataTemplate AgendaViewModeButtonContentTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
DayViewModeButtonContentTemplate
Gets or sets the content template of the DayViewMode.
Declaration
public DataTemplate DayViewModeButtonContentTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
MonthViewModeButtonContentTemplate
Gets or sets the content template of the MonthViewMode.
Declaration
public DataTemplate MonthViewModeButtonContentTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
TimelineViewModeButtonContentTemplate
Gets or sets the content template of the TimelineViewMode.
Declaration
public DataTemplate TimelineViewModeButtonContentTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
WeekViewModeButtonContentTemplate
Gets or sets the content template of the WeekViewMode.
Declaration
public DataTemplate WeekViewModeButtonContentTemplate { get; set; }
Property Value
System.Windows.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
System.Object
item
The data object for which to select the template. |
System.Windows.DependencyObject
container
The data-bound object. |
Returns
System.Windows.DataTemplate
Returns a custom DataTemplate or the default. |