Click or drag to resize
ViewDefinitionBaseGetVisibleRangeStart Method
When overridden in the derived class, this method calculated the visible range start using the current date (passed as parameter), a culture and if provided, a specific first day of week.

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView (in Telerik.Windows.Controls.ScheduleView.dll) Version: 2017.3.1018.40 (2017.3.1018.40)
protected virtual DateTime GetVisibleRangeStart(
	DateTime currentDate,
	CultureInfo culture,
	Nullable<DayOfWeek> firstDayOfWeek


Type: SystemDateTime
The current date to be used to calculate the visible range start.
Type: System.GlobalizationCultureInfo
The culture to be used to calculate the visible range start.
Type: SystemNullableDayOfWeek
The first day of week that overrides the one, provided by the culture.

Return Value

Type: DateTime
The visible range start for the corresponding current date, culture and first day of week.
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.
See Also