[]
        
(Showing Draft Content)

C1.WPF.Schedule.C1Calendar

C1Calendar Class

Represents a multi month calendar with an ability to interactively navigate through months and select a specific DateTime value or its components.

Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.4.6.2.dll
Syntax
[StyleTypedProperty(Property = "MonthCalendarStyle", StyleTargetType = typeof(C1CalendarItem))]
[StyleTypedProperty(Property = "MonthSlotStyle", StyleTargetType = typeof(MonthSlotPresenter))]
public class C1Calendar : CalendarBase, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IWeakEventListener

Constructors

Name Description
C1Calendar()

Initializes the new instance of the C1Calendar control.

Fields

Name Description
AdjacentMonthDayBrushProperty

Identifies the AdjacentMonthDayBrush dependency property.

BoldedDatesProperty

Identifies the BoldedDates dependency property.

DaysOfWeekBorderBrushProperty

Identifies the DaysOfWeekBorderBrush dependency property.

DisabledDayBrushProperty

Identifies the DisabledDayBrush dependency property.

DropDownItemCountProperty

Identifies the DropDownItemCount dependency property.

GenerateAdjacentMonthDaysProperty

Identifies the GenerateAdjacentMonthDays dependency property.

MaxSelectionCountProperty

Identifies the MaxSelectionCount dependency property.

MonthCalendarStyleProperty

Identifies the MonthCalendarStyle dependency property.

MonthCountProperty

Identifies the MonthCount dependency property.

MonthHeaderBackgroundProperty

Identifies the MonthHeaderBackground dependency property.

MonthHeaderFontFamilyProperty

Identifies the MonthHeaderFontFamily dependency property.

MonthHeaderFontSizeProperty

Identifies the MonthHeaderFontSize dependency property.

MonthHeaderFontWeightProperty

Identifies the MonthHeaderFontWeight dependency property.

MonthHeaderForegroundProperty

Identifies the MonthHeaderForeground dependency property.

MonthHeightProperty

Identifies the MonthHeight dependency property.

MonthSlotStyleProperty

Identifies the MonthSlotStyle dependency property.

MonthWidthProperty

Identifies the MonthWidth dependency property.

MonthsPanelProperty

Identifies the MonthsPanel dependency property.

NavigationButtonBrushProperty

Identifies the NavigationButtonBrush dependency property.

NextMonthCommand

Defines the command that makes a next month the month that is currently represented by the control.

PreviousMonthCommand

Defines the command that makes a previous month the month that is currently represented by the control.

SelectedDatesProperty

Identifies the SelectedDates dependency property.

SelectedDayBrushProperty

Identifies the SelectedDayBrush dependency property.

SelectionModeProperty

Identifies the SelectionMode dependency property.

ShowWeekNumbersProperty

Identifies the ShowWeekNumbers dependency property.

TodayBrushProperty

Identifies the TodayBrush dependency property.

WeekendBrushProperty

Identifies the WeekendBrush dependency property.

Properties

Name Description
AdjacentMonthDayBrush

Gets or sets a Brush object used to display adjacent month days. This is a dependency property.

BoldedDates

Gets or sets the list of bolded dates. This is a dependency property.

DaysOfWeekBorderBrush

Gets or sets a Brush object used to underline days of week. This is a dependency property.

DisabledDayBrush

Gets or sets a Brush object used to display disabled days. This is a dependency property.

DropDownItemCount

Gets or sets the number of items in dropdown month/year selectors in the month header. This is a dependency property.

GenerateAdjacentMonthDays

Gets or sets a value that determines whether to show days corresponding to months which are adjacent for the months currently represented by the control. The default value is False. This is a dependency property.

MaxSelectionCount

Gets or sets the maximum number of days that can be selected in the control. This is a dependency property.

MonthCalendarStyle

Gets or sets a Style applied to each child C1CalendarItem representing a single month. This is a dependency property.

MonthCount

Gets or sets a number of months currently represented by the calendar. The default value is 1. This is a dependency property.

MonthHeaderBackground

Gets or sets a Brush object used to color month header. This is a dependency property.

MonthHeaderFontFamily

Gets or sets a FontFamily object used to to display month header text. This is a dependency property.

MonthHeaderFontSize

Gets or sets a double value determining month header font size. This is a dependency property.

MonthHeaderFontWeight

Gets or sets a FontWeight object used to to display month header text. This is a dependency property.

MonthHeaderForeground

Gets or sets a Brush object used to color month header text. This is a dependency property.

MonthHeight

Gets or sets a value that determines a height of each month slot of the calendar. This is a dependency property.

MonthSlotStyle

Gets or sets a Style for C1CalendarPresenter elements which are the root elements of a visual tree representing a single month. This is a dependency property.

MonthWidth

Gets or sets a value that determines a width of each month slot of the calendar. This is a dependency property.

MonthsPanel

Gets or sets an ItemsPanelTemplate that defines the panel that lays out elements representing separate months. This is a dependency property.

NavigationButtonBrush

Gets or sets a Brush object used to color navigation buttons. This is a dependency property.

SelectedDates

Gets or sets the list of selected dates. This is a dependency property.

SelectedDayBrush

Gets or sets a Brush object used to highlight selected dates. This is a dependency property.

SelectionMode

Gets or sets the selection behavior for the C1Calendar control. This is a dependency property. The default value is Extended.

ShowWeekNumbers

Gets or sets a bool value indicating whether the control displays week numbers (1-52). This is a dependency property. The default is false.

TodayBrush

Gets or sets a Brush object used to highlight current date. This is a dependency property.

WeekendBrush

Gets or sets a Brush object used to display weekends. This is a dependency property.

Methods

Name Description
Calendar_Loaded(object, RoutedEventArgs)
NextMonth()

Makes the next month the month that is currently represented by the control.

OnApplyTemplate()

Rebuilds calendar slots after initializing.

OnCreateAutomationPeer()

Gets an AutomationPeer object used for testing the control.

OnKeyUp(KeyEventArgs)
OnMaxDateChanged(DependencyPropertyChangedEventArgs)
OnMinDateChanged(DependencyPropertyChangedEventArgs)
OnMouseMove(MouseEventArgs)

Selects continuous dates if mouse is moved with the left button pressed.

OnMouseUp(MouseButtonEventArgs)

Finishes updating of SelectedDates collection.

PreviousMonth()

Makes the previous month the month that is currently represented by the control.

ReceiveWeakEvent(Type, object, EventArgs)

Receives events from the centralized event manager.

RefreshTheme(ResourceDictionary, ResourceDictionary)
SetSelectionToDate()
Today()

Navigates control to the current date.