Class
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:

cs-api-definition
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

DayViewDefinition()

Declaration

cs-api-definition
public DayViewDefinition()

Fields

EnableSmallAppointmentRenderingProperty

Identifies the EnableSmallAppointmentRendering dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EnableSmallAppointmentRenderingProperty

Field Value

DependencyProperty

ShowAllDayAreaProperty

Identifies the ShowAllDayArea dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowAllDayAreaProperty

Field Value

DependencyProperty

ShowWeekGroupHeadersProperty

Identifies the ShowWeekGroupHeaders dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowWeekGroupHeadersProperty

Field Value

DependencyProperty

WeekGroupHeaderStringFormatProperty

Identifies the ShowWeekGroupHeaders dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty WeekGroupHeaderStringFormatProperty

Field Value

DependencyProperty

Properties

EnableSmallAppointmentRendering

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

Declaration

cs-api-definition
public bool EnableSmallAppointmentRendering { get; set; }

Property Value

bool

ShowAllDayArea

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

Declaration

cs-api-definition
public bool ShowAllDayArea { get; set; }

Property Value

bool

True if the AllDayArea is visible; false otherwise.

ShowWeekGroupHeaders

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

Declaration

cs-api-definition
public bool ShowWeekGroupHeaders { get; set; }

Property Value

bool

True if the WeekHeader are visible; false otherwise.

WeekGroupHeaderStringFormat

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

Declaration

cs-api-definition
public string WeekGroupHeaderStringFormat { get; set; }

Property Value

string

Methods

CreateInstanceCore()

Creates a new instance of the DayViewDefinition class.

Declaration

cs-api-definition
protected override Freezable CreateInstanceCore()

Returns

Freezable

The new instance.

CreateRecurringSlot(IDateSpan, IDateSpan, DayOfWeek)

Creates the recurring slot for DayViewDefinition.

Declaration

cs-api-definition
protected override Slot CreateRecurringSlot(IDateSpan from, IDateSpan to, DayOfWeek firstDayOfWeek)

Parameters

from

IDateSpan

From.

to

IDateSpan

To.

firstDayOfWeek

DayOfWeek

The first day of week.

Returns

Slot

The recurring slot.

Overrides ViewDefinitionBase.CreateRecurringSlot(IDateSpan, IDateSpan, DayOfWeek)

FormatVisibleRangeText(IFormatProvider, DateTime, DateTime, DateTime)

Formats the string that represents the current visible range.

Declaration

cs-api-definition
protected override string FormatVisibleRangeText(IFormatProvider formatInfo, DateTime rangeStart, DateTime rangeEnd, DateTime currentDate)

Parameters

formatInfo

IFormatProvider

The format info provider to be used for formatting.

rangeStart

DateTime

The start of the visible range.

rangeEnd

DateTime

The end of the visible range.

currentDate

DateTime

The current date.

Returns

string

The formatted string to be displayed as current visible range.

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

FormatWeekGroupHeaderName(IFormatProvider, IList<DateTime>, int)

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

Declaration

cs-api-definition
protected override string FormatWeekGroupHeaderName(IFormatProvider formatInfo, IList<DateTime> dates, int weekNumber)

Parameters

formatInfo

IFormatProvider

The format info provider to be used for formatting.

dates

IList<DateTime>

weekNumber

int

Returns

string

The formatted group name.

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

GetShowWeekGroupHeaders()

This method specify whether WeekHeader should be displayed or not.

Declaration

cs-api-definition
protected override bool GetShowWeekGroupHeaders()

Returns

bool

True if ShowWeekGroupHeaders is true, otherwise false.

Overrides ViewDefinitionBase.GetShowWeekGroupHeaders()