WeekViewDefinition
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
public WeekViewDefinition()
Methods
CreateInstanceCore()
Freezable
Creates a new instance of the WeekViewDefinition class.
protected override Freezable CreateInstanceCore()
Freezable
The new instance.
Overrides:
When overridden in a derived class, this method formats the string that represents the current visible range.
protected override string FormatVisibleRangeText(IFormatProvider formatInfo, DateTime rangeStart, DateTime rangeEnd, DateTime currentDate)
The format info provider to be used for formatting.
rangeStartDateTimeThe start of the visible range.
rangeEndDateTimeThe end of the visible range.
currentDateDateTimeThe current date.
Returns:The formatted string to be displayed as current visible range.
Overrides:
Calculated the visible range start using the current date (passed as parameter), a culture and if provided, a specific first day of week.
protected override DateTime GetVisibleRangeStart(DateTime dateTime, CultureInfo culture, DayOfWeek? firstDayOfWeek)
The current date to be used to calculate the visible range start.
cultureCultureInfoThe culture to be used to calculate the visible range start.
firstDayOfWeekDayOfWeek?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:
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.
Prepares the specified element to display the specified item.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Element used to display the specified item.
itemobjectSpecified item.
Overrides: