Class DayViewDefinition
Represents a definition of a view that shows a single day in day view mode.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class DayViewDefinition : MultidayViewDefinition, INotifyPropertyChanged, ISlotConvertor
Constructors
DayViewDefinition()
Fields
EnableSmallAppointmentRenderingProperty
Identifies the EnableSmallAppointmentRendering dependency property.
Declaration
public static readonly DependencyProperty EnableSmallAppointmentRenderingProperty
Field Value
System.Windows.DependencyProperty
|
ShowAllDayAreaProperty
Identifies the ShowAllDayArea dependency property.
Declaration
public static readonly DependencyProperty ShowAllDayAreaProperty
Field Value
System.Windows.DependencyProperty
|
ShowWeekGroupHeadersProperty
Identifies the ShowWeekGroupHeaders dependency property.
Declaration
public static readonly DependencyProperty ShowWeekGroupHeadersProperty
Field Value
System.Windows.DependencyProperty
|
WeekGroupHeaderStringFormatProperty
Identifies the ShowWeekGroupHeaders dependency property.
Declaration
public static readonly DependencyProperty WeekGroupHeaderStringFormatProperty
Field Value
System.Windows.DependencyProperty
|
Properties
EnableSmallAppointmentRendering
Gets or sets whether appointments with duration smaller than MinorTickLength will be rounded to MinorTickLength.
Declaration
public bool EnableSmallAppointmentRendering { get; set; }
Property Value
System.Boolean
|
ShowAllDayArea
Gets or sets a value indicating whether the AllDayArea is visible or not.
Declaration
public bool ShowAllDayArea { get; set; }
Property Value
System.Boolean
True if the AllDayArea is visible; false otherwise. |
ShowWeekGroupHeaders
Gets or sets a value indicating whether WeekHeader should be visible.
Declaration
public bool ShowWeekGroupHeaders { get; set; }
Property Value
System.Boolean
True if the WeekHeader are visible; false otherwise. |
WeekGroupHeaderStringFormat
Gets or sets the format that will be applied on the WeekHeaders.
Declaration
public string WeekGroupHeaderStringFormat { get; set; }
Property Value
System.String
|
Methods
CreateRecurringSlot(IDateSpan, IDateSpan, DayOfWeek)
Creates the recurring slot for DayViewDefinition.
Declaration
protected override Slot CreateRecurringSlot(IDateSpan from, IDateSpan to, DayOfWeek firstDayOfWeek)
Parameters
IDateSpan
from
From. |
IDateSpan
to
To. |
System.DayOfWeek
firstDayOfWeek
The first day of week. |
Returns
Slot
The recurring slot. |
Overrides
FormatVisibleRangeText(IFormatProvider, DateTime, DateTime, DateTime)
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
FormatWeekGroupHeaderName(IFormatProvider, IList<DateTime>, Int32)
When overridden in a derived class, this method formats the week group name.
Declaration
protected override string FormatWeekGroupHeaderName(IFormatProvider formatInfo, IList<DateTime> dates, int weekNumber)
Parameters
System.IFormatProvider
formatInfo
The format info provider to be used for formatting. |
System.Collections.Generic.IList<System.DateTime>
dates
|
System.Int32
weekNumber
|
Returns
System.String
The formatted group name. |
Overrides
GetShowWeekGroupHeaders()
This method specify whether WeekHeader should be displayed or not.
Declaration
protected override bool GetShowWeekGroupHeaders()
Returns
System.Boolean
True if ShowWeekGroupHeaders is true, otherwise false. |