New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class DayViewDefinition : MultidayViewDefinition, INotifyPropertyChanged, ISlotConvertor

Inheritance: objectViewDefinitionBaseMultidayViewDefinitionDayViewDefinition

Derived Classes: WeekViewDefinition

Implements: INotifyPropertyChangedISlotConvertor

Inherited Members MultidayViewDefinition.GroupHeaderDateStringFormatPropertyMultidayViewDefinition.OrientationPropertyMultidayViewDefinition.MinorTickLengthPropertyMultidayViewDefinition.MajorTickLengthPropertyMultidayViewDefinition.TimerulerMinorTickStringFormatPropertyMultidayViewDefinition.GetOrientation()MultidayViewDefinition.GetMinorTickLength()MultidayViewDefinition.GetMajorTickLength()MultidayViewDefinition.FormatGroupHeaderName(IFormatProvider, object)MultidayViewDefinition.GroupHeaderDateStringFormatMultidayViewDefinition.OrientationMultidayViewDefinition.MinorTickLengthMultidayViewDefinition.MajorTickLengthMultidayViewDefinition.TimerulerMinorTickStringFormatMultidayViewDefinition.DateGroupDescriptionViewDefinitionBase.CalendarWeekRulePropertyViewDefinitionBase.StretchGroupHeadersPropertyViewDefinitionBase.TitlePropertyViewDefinitionBase.LargeChangeIntervalPropertyViewDefinitionBase.SmallChangeIntervalPropertyViewDefinitionBase.DayEndTimePropertyViewDefinitionBase.DayStartTimePropertyViewDefinitionBase.VisibleDaysPropertyViewDefinitionBase.FirstDayOfWeekPropertyViewDefinitionBase.MinTimeRulerExtentPropertyViewDefinitionBase.MaxTimeRulerExtentPropertyViewDefinitionBase.SubGroupsFilterPropertyViewDefinitionBase.GroupFilterPropertyViewDefinitionBase.AppointmentFilterPropertyViewDefinitionBase.OccurrenceFilterPropertyViewDefinitionBase.TimerulerMajorTickStringFormatPropertyViewDefinitionBase.SlotGenarationBehaviorPropertyViewDefinitionBase.SnapBehaviorPropertyViewDefinitionBase.ToString()ViewDefinitionBase.GetMinTimeRulerExtent(double)ViewDefinitionBase.GetMaxTimeRulerExtent(double)ViewDefinitionBase.PrepareContainerForItemOverride(DependencyObject, object)ViewDefinitionBase.GetVisibleRangeStart(DateTime, CultureInfo, DayOfWeek?)ViewDefinitionBase.GetVisibleRangeEnd(DateTime, CultureInfo, DayOfWeek?)ViewDefinitionBase.GetGroupDescriptions()ViewDefinitionBase.OnPropertyChanged(string)ViewDefinitionBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewDefinitionBase.OnPropertyChanged(PropertyChangedEventArgs)ViewDefinitionBase.CalendarWeekRuleViewDefinitionBase.StretchGroupHeadersViewDefinitionBase.TitleViewDefinitionBase.LargeChangeIntervalViewDefinitionBase.SmallChangeIntervalViewDefinitionBase.FirstDayOfWeekViewDefinitionBase.VisibleDaysViewDefinitionBase.DayEndTimeViewDefinitionBase.DayStartTimeViewDefinitionBase.MinTimeRulerExtentViewDefinitionBase.MaxTimeRulerExtentViewDefinitionBase.SubGroupsFilterViewDefinitionBase.GroupFilterViewDefinitionBase.AppointmentFilterViewDefinitionBase.OccurrenceFilterViewDefinitionBase.TimerulerMajorTickStringFormatViewDefinitionBase.SlotGenarationBehaviorViewDefinitionBase.SnapBehaviorViewDefinitionBase.ShowTimeRulerViewDefinitionBase.PropertyChanged...

Constructors

C#
public DayViewDefinition()

Fields

Identifies the EnableSmallAppointmentRendering dependency property.

C#
public static readonly DependencyProperty EnableSmallAppointmentRenderingProperty

ShowAllDayAreaProperty

DependencyProperty

Identifies the ShowAllDayArea dependency property.

C#
public static readonly DependencyProperty ShowAllDayAreaProperty

Identifies the ShowWeekGroupHeaders dependency property.

C#
public static readonly DependencyProperty ShowWeekGroupHeadersProperty

Identifies the ShowWeekGroupHeaders dependency property.

C#
public static readonly DependencyProperty WeekGroupHeaderStringFormatProperty

Properties

Gets or sets whether appointments with duration smaller than MinorTickLength will be rounded to MinorTickLength.

C#
public bool EnableSmallAppointmentRendering { get; set; }

Gets or sets a value indicating whether the AllDayArea is visible or not.

C#
public bool ShowAllDayArea { get; set; }
Property Value:

True if the AllDayArea is visible; false otherwise.

Gets or sets a value indicating whether WeekHeader should be visible.

C#
public bool ShowWeekGroupHeaders { get; set; }
Property Value:

True if the WeekHeader are visible; false otherwise.

Gets or sets the format that will be applied on the WeekHeaders.

C#
public string WeekGroupHeaderStringFormat { get; set; }

Methods

Creates a new instance of the DayViewDefinition class.

C#
protected override Freezable CreateInstanceCore()
Returns:

Freezable

The new instance.

Creates the recurring slot for DayViewDefinition.

C#
protected override Slot CreateRecurringSlot(IDateSpan from, IDateSpan to, DayOfWeek firstDayOfWeek)
Parameters:fromIDateSpan

From.

toIDateSpan

To.

firstDayOfWeekDayOfWeek

The first day of week.

Returns:

Slot

The recurring slot.

Overrides: ViewDefinitionBase.CreateRecurringSlot(IDateSpan, IDateSpan, DayOfWeek)

Formats the string that represents the current visible range.

C#
protected override string FormatVisibleRangeText(IFormatProvider formatInfo, DateTime rangeStart, DateTime rangeEnd, DateTime currentDate)
Parameters:formatInfoIFormatProvider

The format info provider to be used for formatting.

rangeStartDateTime

The start of the visible range.

rangeEndDateTime

The end of the visible range.

currentDateDateTime

The current date.

Returns:

string

The formatted string to be displayed as current visible range.

Overrides: ViewDefinitionBase.FormatVisibleRangeText(IFormatProvider, DateTime, DateTime, DateTime)

When overridden in a derived class, this method formats the week group name.

C#
protected override string FormatWeekGroupHeaderName(IFormatProvider formatInfo, IList<DateTime> dates, int weekNumber)
Parameters:formatInfoIFormatProvider

The format info provider to be used for formatting.

datesIList<DateTime>weekNumberint
Returns:

string

The formatted group name.

Overrides: ViewDefinitionBase.FormatWeekGroupHeaderName(IFormatProvider, IList<DateTime>, int)

This method specify whether WeekHeader should be displayed or not.

C#
protected override bool GetShowWeekGroupHeaders()
Returns:

bool

True if ShowWeekGroupHeaders is true, otherwise false.

Overrides: ViewDefinitionBase.GetShowWeekGroupHeaders()