Class WeekViewDefinition
Represents a definition of a view that shows all seven week days as in day view mode.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class WeekViewDefinition : DayViewDefinition, INotifyPropertyChanged, ISlotConvertor
Constructors
WeekViewDefinition()
Declaration
public WeekViewDefinition()
Methods
CreateInstanceCore()
Creates a new instance of the WeekViewDefinition class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
System.Windows.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
System.IFormatProvider
formatInfo
The format info provider to be used for formatting. |
System.DateTime
rangeStart
The start of the visible range. |
System.DateTime
rangeEnd
The end of the visible range. |
System.DateTime
currentDate
The current date. |
Returns
System.String
The formatted string to be displayed as current visible range. |
Overrides
GetVisibleRangeStart(DateTime, CultureInfo, Nullable<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, Nullable<DayOfWeek> firstDayOfWeek)
Parameters
System.DateTime
dateTime
The current date to be used to calculate the visible range start. |
System.Globalization.CultureInfo
culture
The culture to be used to calculate the visible range start. |
System.Nullable<System.DayOfWeek>
firstDayOfWeek
The first day of week that overrides the one, provided by the culture. |
Returns
System.DateTime
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
System.Windows.DependencyObject
element
Element used to display the specified item. |
System.Object
item
Specified item. |