DayViewDefinition
Represents a definition of a view that shows a single day in day view mode.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
public class DayViewDefinition : MultidayViewDefinition, INotifyPropertyChanged, ISlotConvertor
Inheritance: objectViewDefinitionBaseMultidayViewDefinitionDayViewDefinition
Derived Classes:
Implements:
Inherited Members
Constructors
public DayViewDefinition()
Fields
EnableSmallAppointmentRenderingProperty
DependencyProperty
Identifies the EnableSmallAppointmentRendering dependency property.
public static readonly DependencyProperty EnableSmallAppointmentRenderingProperty
ShowAllDayAreaProperty
DependencyProperty
Identifies the ShowAllDayArea dependency property.
public static readonly DependencyProperty ShowAllDayAreaProperty
ShowWeekGroupHeadersProperty
DependencyProperty
Identifies the ShowWeekGroupHeaders dependency property.
public static readonly DependencyProperty ShowWeekGroupHeadersProperty
WeekGroupHeaderStringFormatProperty
DependencyProperty
Identifies the ShowWeekGroupHeaders dependency property.
public static readonly DependencyProperty WeekGroupHeaderStringFormatProperty
Properties
Gets or sets whether appointments with duration smaller than MinorTickLength will be rounded to MinorTickLength.
public bool EnableSmallAppointmentRendering { get; set; }
Gets or sets a value indicating whether the AllDayArea is visible or not.
public bool ShowAllDayArea { get; set; }
True if the AllDayArea is visible; false otherwise.
Gets or sets a value indicating whether WeekHeader should be visible.
public bool ShowWeekGroupHeaders { get; set; }
True if the WeekHeader are visible; false otherwise.
Gets or sets the format that will be applied on the WeekHeaders.
public string WeekGroupHeaderStringFormat { get; set; }
Methods
CreateInstanceCore()
Freezable
Creates a new instance of the DayViewDefinition class.
protected override Freezable CreateInstanceCore()
Freezable
The new instance.
Creates the recurring slot for DayViewDefinition.
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:
When overridden in a derived class, this method formats the week group name.
protected override string FormatWeekGroupHeaderName(IFormatProvider formatInfo, IList<DateTime> dates, int weekNumber)
The format info provider to be used for formatting.
datesIList<DateTime>weekNumberintReturns:The formatted group name.
Overrides:
This method specify whether WeekHeader should be displayed or not.
protected override bool GetShowWeekGroupHeaders()
True if ShowWeekGroupHeaders is true, otherwise false.
Overrides: