ClassWeekViewDefinition
Represents a definition of a view that shows all seven week days as in day view mode.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
public class WeekViewDefinition : DayViewDefinition, INotifyPropertyChanged, ISlotConvertor
Inheritance: objectViewDefinitionBaseMultidayViewDefinitionDayViewDefinitionWeekViewDefinition
Implements:
Inherited Members
Constructors
WeekViewDefinition()
Declaration
public WeekViewDefinition()
Methods
CreateInstanceCore()
Creates a new instance of the WeekViewDefinition class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
Freezable
The new instance.
Overrides
FormatVisibleRangeText(IFormatProvider, DateTime, DateTime, DateTime)
When overridden in a derived class, this method formats the string that represents the current visible range.
Declaration
protected override string FormatVisibleRangeText(IFormatProvider formatInfo, DateTime rangeStart, DateTime rangeEnd, DateTime currentDate)
Parameters
formatInfo
The format info provider to be used for formatting.
rangeStart
The start of the visible range.
rangeEnd
The end of the visible range.
currentDate
The current date.
Returns
The formatted string to be displayed as current visible range.
Overrides
GetVisibleRangeStart(DateTime, CultureInfo, DayOfWeek?)
Calculated the visible range start using the current date (passed as parameter), a culture and if provided, a specific first day of week.
Declaration
protected override DateTime GetVisibleRangeStart(DateTime dateTime, CultureInfo culture, DayOfWeek? firstDayOfWeek)
Parameters
dateTime
The current date to be used to calculate the visible range start.
culture
The culture to be used to calculate the visible range start.
firstDayOfWeek
The first day of week that overrides the one, provided by the culture.
Returns
The visible range start for the corresponding current date, culture and first day of week.
Overrides
Remarks
For example the WeekViewDefinition "snaps" to weeks. That means that it will always provide as visible range start a date, that is the first day of the week which contains the current date and this first day will be the same day of week as the provided one. If no firstDayOfWeek is provided, the value from the culture is used. Example: If the first day of week is Monday and the current date is 2010/10/29 the result will be 2010/10/25.
PrepareContainerForItemOverride(DependencyObject, object)
Prepares the specified element to display the specified item.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
Element used to display the specified item.
item
Specified item.
Overrides