[]
        
(Showing Draft Content)

C1.WPF.Schedule.CalendarBase

CalendarBase Class

The base class for the C1CalendarItem and C1Calendar controls.

Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.4.6.2.dll
Syntax
[StyleTypedProperty(Property = "DaySlotStyle", StyleTargetType = typeof(DaySlotPresenter))]
[StyleTypedProperty(Property = "DayOfWeekSlotStyle", StyleTargetType = typeof(DayOfWeekSlotPresenter))]
public abstract class CalendarBase : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IWeakEventListener

Constructors

Name Description
CalendarBase()

Initializes the new instance of the CalendarBase class.

Fields

Name Description
BackgroundProperty

Identifies the Background dependency property.

CalendarHelperProperty

Identifies the CalendarHelper dependency property.

DayOfWeekSlotStyleProperty

Identifies the DayOfWeekSlotStyle dependency property.

DayOfWeekSlotTemplateProperty

Identifies the DayOfWeekSlotTemplate dependency property.

DaySlotStyleProperty

Identifies the DaySlotStyle dependency property.

DaySlotTemplateProperty

Identifies the DaySlotTemplate dependency property.

DaysOfWeekPanelProperty

Identifies the DaysOfWeekPanel dependency property.

DaysPanelProperty

Identifies the DaysPanel dependency property.

DefaultThemeKey

Gets the ComponentResourceKey that references the default theme that is defined for the calendar control.

MaxDateProperty

Identifies the MaxDate dependency property.

MinDateProperty

Identifies the MinDate dependency property.

MonthProperty

Identifies the Month dependency property.

RequestedThemeProperty

Identifies the RequestedTheme dependency property.

SelectedDateChangedEvent

Identifies the SelectedDateChanged routed event.

SelectedDateProperty

Identifies the SelectedDate dependency property.

ThemeProperty

Identifies the Theme dependency property.

YearProperty

Identifies the Year dependency property.

selectedDateGroupChangeInitiator

Properties

Name Description
CalendarHelper

Gets or sets the CalendarHelper object that provides calendar-dependant properties. This is a dependency property.

DayOfWeekSlotStyle

Gets or sets a Style for DayOfWeekSlotPresenter elements which are the root elements of a visual tree representing a single day of the week.

DayOfWeekSlotTemplate

Gets or sets a DataTemplate that defines a UI representation of a single day of the week. This is a dependency property.

DaySlotStyle

Gets or sets a Style for DaySlotPresenter elements which are the root elements of a visual tree representing a single day of a month.

DaySlotTemplate

Gets or sets a DataTemplate that defines a UI representation of a single day of a month. This is a dependency property.

DaysOfWeekPanel

Gets or sets an ItemsPanelTemplate that defines the panel that lays out elements representing days of the week. This is a dependency property.

DaysPanel

Gets or sets an ItemsPanelTemplate that defines the panel that lays out elements representing days of a month. This is a dependency property.

IsDisposed
MaxDate

Gets or sets the maximum allowable date. The default is 12/31/9998. This is a dependency property.

MinDate

Gets or sets the minimum allowable date. The default is 01/01/1753. This is a dependency property.

Month

Gets or sets a month component of the SelectedDate property. This is a dependency property.

RequestedTheme

Gets or sets a the default theme used by the CalendarBase control for resource determination.

SelectedDate

Gets or sets the currently selected date. This is a dependency property.

SyncRepresentationToDateTime

Gets the Boolean value, determining whether control synchronizes it's representation according to the changes of DateTime property.

Theme

Gets or sets a ResourceDictionary object containing calendar theme resources.

Year

Gets or sets a year component of the SelectedDate property. This is a dependency property.

Methods

Name Description
Calendar_Loaded(object, RoutedEventArgs)
GetDateTimeAtPoint(CalendarBase, Point)

Returns the Nullable<T> at the specified location.

InvalidateCalendarHelper()
InvalidateTheme()
OnApplyTemplate()

Rebuilds calendar slots after initializing.

OnMaxDateChanged(DependencyPropertyChangedEventArgs)
OnMinDateChanged(DependencyPropertyChangedEventArgs)
OnMonthChanged(DependencyPropertyChangedEventArgs)
ReceiveWeakEvent(Type, object, EventArgs)

Receives events from the centralized event manager.

RefreshProperty(DependencyProperty)
RefreshTheme(ResourceDictionary, ResourceDictionary)
SetSelectionToDate()

Events

Name Description
SelectedDateChanged

Occurs when the SelectedDate property value has been changed.