[]
        
(Showing Draft Content)

C1.WinUI.Calendar.C1Calendar

C1Calendar Class

Represents a month calendar with the ability to interactively navigate through months and select a specific DateTime value or a range of dates.

Inheritance
C1Calendar
Implements
Namespace: C1.WinUI.Calendar
Assembly: C1.WinUI.Calendar.dll
Syntax
public class C1Calendar : C1View, IDisposable

Constructors

Name Description
C1Calendar()

Initializes a new instance of the C1Calendar class.

Fields

Name Description
AdjacentDayForegroundProperty

Identifies the AdjacentDayForeground dependency property.

AdjacentDaySlotTemplateProperty

Identifies the AdjacentDaySlotTemplate dependency property.

AdjacentDayStyleProperty

Identifies the AdjacentDayStyle dependency property.

BoldDayStyleProperty

Identifies the BoldDayStyle dependency property.

BoldedDatesProperty

Identifies the BoldedDates dependency property.

CalendarTypeProperty

Identifies the CalendarType dependency property.

DayBackgroundProperty

Identifies the DayBackground dependency property.

DayBorderBrushProperty

Identifies the DayBorderBrush dependency property.

DayBorderThicknessProperty

Identifies the DayBorderThickness dependency property.

DayForegroundProperty

Identifies the DayForeground dependency property.

DayOfWeekBackgroundProperty

Identifies the DayOfWeekBackground dependency property.

DayOfWeekFontFamilyProperty

Identifies the DayOfWeekFontFamily dependency property.

DayOfWeekFontSizeProperty

Identifies the DayOfWeekFontSize dependency property.

DayOfWeekFontStyleProperty

Identifies the DayOfWeekFontStyle dependency property.

DayOfWeekFontWeightProperty

Identifies the DayOfWeekFontWeight dependency property.

DayOfWeekForegroundProperty

Identifies the DayOfWeekForeground dependency property.

DayOfWeekFormatProperty

Identifies the DayOfWeekFormat dependency property.

DayOfWeekPaddingProperty

Identifies the DayOfWeekPadding dependency property.

DayOfWeekSlotTemplateProperty

Identifies the DayOfWeekSlotTemplate dependency property.

DayOfWeekStyleProperty

Identifies the DayOfWeekStyle dependency property.

DayPaddingProperty

Identifies the DayPadding dependency property.

DaySlotTemplateProperty

Identifies the DaySlotTemplate dependency property.

DayStyleProperty

Identifies the DayStyle dependency property.

DisabledForegroundProperty

Identifies the DisabledForeground dependency property.

DisabledStyleProperty

Identifies the DisabledStyle dependency property.

DisplayDateProperty

Identifies the DisplayDate dependency property.

FirstDayOfWeekProperty

Identifies the FirstDayOfWeek dependency property.

HeaderBackgroundProperty

Identifies the HeaderBackground dependency property.

HeaderFontFamilyProperty

Identifies the HeaderFontFamily dependency property.

HeaderFontSizeProperty

Identifies the HeaderFontSize dependency property.

HeaderFontStyleProperty

Identifies the HeaderFontStyle dependency property.

HeaderFontWeightProperty

Identifies the HeaderFontWeight dependency property.

HeaderForegroundProperty

Identifies the HeaderForeground dependency property.

HeaderMonthFormatProperty

Identifies the HeaderMonthFormat dependency property.

HeaderStyleProperty

Identifies the HeaderStyle dependency property.

IsAnimatedProperty

Identifies the IsAnimated dependency property.

MaxDateProperty

Identifies the MaxDate dependency property.

MaxSelectionCountProperty

Identifies the MaxSelectionCount dependency property.

MinDateProperty

Identifies the MinDate dependency property.

MonthStyleProperty

Identifies the MonthStyle dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

MouseOverModeProperty

Identifies the MouseOverMode dependency property.

NextButtonStyleProperty

Identifies the NextButtonStyle dependency property.

NextIconStyleProperty

Identifies the NextIconStyle dependency property.

NextIconTemplateProperty

Identifies the NextIconTemplate dependency property.

OrientationProperty

Identifies the Orientation dependency property.

PrevButtonStyleProperty

Identifies the PrevButtonStyle dependency property.

PrevIconStyleProperty

Identifies the PrevIconStyle dependency property.

PrevIconTemplateProperty

Identifies the PrevIconTemplate dependency property.

SelectedDateProperty

Identifies the SelectedDate dependency property.

SelectedDatesProperty

Identifies the SelectedDates dependency property.

SelectionBackgroundProperty

Identifies the SelectionBackground dependency property.

SelectionForegroundProperty

Identifies the SelectionForeground dependency property.

SelectionModeProperty

Identifies the SelectionMode dependency property.

SelectionStyleProperty

Identifies the SelectionStyle dependency property.

ShowAdjacentDayProperty

Identifies the ShowAdjacentDay dependency property.

ShowHeaderProperty

Identifies the ShowHeader dependency property.

ShowNavigationButtonsProperty

Identifies the ShowNavigationButtons dependency property.

TodayBackgroundProperty

Identifies the TodayBackground dependency property.

TodayBorderBrushProperty

Identifies the TodayBorderBrush dependency property.

TodayBorderThicknessProperty

Identifies the TodayBorderThickness dependency property.

TodayFontFamilyProperty

Identifies the TodayFontFamily dependency property.

TodayFontSizeProperty

Identifies the TodayFontSize dependency property.

TodayFontStyleProperty

Identifies the TodayFontStyle dependency property.

TodayFontWeightProperty

Identifies the TodayFontWeight dependency property.

TodayForegroundProperty

Identifies the TodayForeground dependency property.

TodayStyleProperty

Identifies the TodayStyle dependency property.

ViewModeProperty

Identifies the ViewMode dependency property.

YearStyleProperty

Identifies the YearStyle dependency property.

Properties

Name Description
ActualAdjacentStyle

Gets the style applied to adjacent slots.

ActualAdjacentYearStyle

Gets the style applied to adjacent year slots.

ActualBoldDayStyle

Gets the style applied to bolded date slots.

ActualDayOfWeekStyle

Gets the style applied to day-of-week slots.

ActualDayStyle

Gets the style applied to day slots.

ActualDisabledMonthStyle

Gets the style applied to disabled month slots.

ActualDisabledStyle

Gets the style applied to disabled slots.

ActualDisabledYearStyle

Gets the style applied to disabled year slots.

ActualHeaderStyle

Gets the style applied to header slots.

ActualMonthStyle

Gets the style applied to month slots.

ActualSelectionStyle

Gets the style applied to selected slots.

ActualTodayStyle

Gets the style applied to today slot.

ActualYearStyle

Gets the style applied to year slots.

Adapter

Gets or sets the adapter that provides the grid with the slots.

AdjacentDayForeground

Gets or sets the color of the adjacent days text.

AdjacentDaySlotTemplate

Gets or sets a data template that defines the UI representation for a single adjacent day on the calendar

AdjacentDayStyle

Gets or sets the style for the AdjacentDay slot.

BoldDayStyle

Gets or sets the style for bolded days slot.

BoldedDates

Gets or sets the collection of the Bolded dates.

CalendarType

Gets or sets the type of calendar.

CanGoBack

Gets a value indicating whether it is possible to navigate backwards.

CanGoForward

Gets a value indicating whether it is possible to navigate forward.

DayBackground

Gets or sets the background for the day slots.

DayBorderBrush

Gets or sets the color used for the border between day slots.

DayBorderThickness

Gets or sets the border thickness between day slots.

DayForeground

Gets or sets the color of the text displayed in the day slots.

DayOfWeekBackground

Gets or sets the background color for the day of week slots.

DayOfWeekFontFamily

Gets or sets the font family of the day of week slots.

DayOfWeekFontSize

Gets or sets the font size of the day of week slots.

DayOfWeekFontStyle

Gets or sets the font style of the day of week slots.

DayOfWeekFontWeight

Gets or sets the font weight of the day of week slots.

DayOfWeekForeground

Gets or sets the color of the text displayed in the day of week slots.

DayOfWeekFormat

Gets or sets the format used to display the day of the week.

DayOfWeekPadding

Gets or sets the padding of the day of week slots.

DayOfWeekSlotTemplate

Gets or sets a data template that defines the UI representation for a day of the week.

DayOfWeekStyle

Gets or sets the style for the Day of Week panel.

DayPadding

Gets or sets the padding of the day slots.

DaySlotTemplate

Gets or sets a data template that defines the UI representation for a single day of the month.

DayStyle

Gets or sets the style for the normal day slot.

DisabledForeground

Gets or sets the color for the text of disabled slots.

DisabledStyle

Gets or sets the style for the disabled slots.

DisplayDate

Gets or sets a value specifying the currently displayed date of the year.

FirstDayOfWeek

Gets or sets a value that represents the first day of the week, the one displayed in the first column of the calendar.

HeaderBackground

Gets or sets the background for the header.

HeaderFontFamily

Gets or sets the font family of the header.

HeaderFontSize

Gets or sets the font size of the header.

HeaderFontStyle

Gets or sets the font style of the header.

HeaderFontWeight

Gets or sets the font weight of the header.

HeaderForeground

Gets or sets the color for the header text.

HeaderMonthFormat

Gets or sets the format used to display the month of the year when the ViewMode is Month.

HeaderStyle

Gets or sets the style for the calendar header.

IsAnimated

Gets or sets whether the control is animated during navigation.

MaxDate

Gets or sets the latest date that the user can select in the calendar.

MaxSelectionCount

Gets or sets the maximum number of days that can be selected in the control.

MinDate

Gets or sets the earliest date that the user can select in the calendar.

MonthStyle

Gets or sets the style for the normal month slot.

MouseOverBrush

Gets or sets the Microsoft.UI.Xaml.Media.Brush that is used to highlight slots when the mouse is over.

MouseOverMode

Gets or sets the mouse-over mode.

NavigateAnimation

Gets an object containing the animation settings that will be applied when navigating backwards or forward.

NextButtonStyle

Gets or sets the style applied to the next button.

NextIconStyle

Gets or sets the style applied to the icon of the next button.

NextIconTemplate

Gets or sets the next icon template.

Orientation

Gets or sets a value indicating which orientation the calendar navigates.

PrevButtonStyle

Gets or sets the style applied to the previous button.

PrevIconStyle

Gets or sets the style applied to the icon of the previous button.

PrevIconTemplate

Gets or sets the previous icon template.

SelectedDate

Gets or sets the currently selected date.

SelectedDates

Gets or sets the currently selected dates.

SelectionBackground

Gets or sets the color used to highlight selected dates.

SelectionForeground

Gets or sets the color for selected date text.

SelectionMode

Gets or sets the selection behavior for the calendar.

SelectionStyle

Gets or sets the style for the selected slots.

ShowAdjacentDay

Default is true - AdjacentDay will invisible if set false.

ShowHeader

Header will be shown if set, default value is true.

ShowNavigationButtons

Navigation Buttons will be shown if set, default value is true.

TodayBackground

Gets or sets the color used to highlight the background of the today day slot.

TodayBorderBrush

Gets or sets the border color for the text of the today day slot.

TodayBorderThickness

Gets or sets the border thickness for the text of the today day slot.

TodayFontFamily

Gets or sets the font family of the today slot.

TodayFontSize

Gets or sets the font size of the today slot.

TodayFontStyle

Gets or sets the font style of the today slot.

TodayFontWeight

Gets or sets the font weight of the today slot.

TodayForeground

Gets or sets the color for the text of the today day slot.

TodayStyle

Gets or sets the style for the today slot.

ViewMode

Gets or sets a value indicating whether the calendar displays a month, year or decade view.

ViewModeAnimation

Gets an object containing the animation settings that will be applied when changing the ViewMode.

YearStyle

Gets or sets the style for the normal year slot.

Methods

Name Description
ChangeViewModeAsync(CalendarViewMode, DateTime?, bool)

Changes the view mode asynchronously performing an animation.

Dispose(bool)
GetDaysSlots()
GetMonthsSlots()

Gets the months slots info.

GetYearSlots()

Gets the years slots info.

GoBackAsync(bool)

Navigates backwards.

GoForwardAsync(bool)

Navigates forward.

IsMouseOverSlot(CalendarSlotInfo)

Gets or sets whether the slot presenter in the specified slot has the mouse over.

OnApplyTemplate()
OnDayOfWeekSlotLoading(CalendarDayOfWeekSlotLoadingEventArgs)

Raises the DayOfWeekSlotLoading event.

OnDaySlotLoading(CalendarDaySlotLoadingEventArgs)

Raises the DaySlotLoading event.

OnDisplayDateChanged(EventArgs)

Raises the DisplayDateChanged event.

OnDisplayDateChanging(EventArgs)

Raises the DisplayDateChanging event.

OnFlowDirectionChanged()

Called when the flow direction changed.

OnHeaderLoading(CalendarHeaderLoadingEventArgs)

Raises the HeaderLoading event.

OnKeyDown(KeyRoutedEventArgs)

Handles OnKeyDown

OnMonthSlotLoading(CalendarMonthSlotLoadingEventArgs)

Raises the MonthSlotLoading event.

OnNextClick(object, RoutedEventArgs)

Called when the next button is clicked.

OnPrevClick(object, RoutedEventArgs)

Called when the previous button is clicked.

OnSelectionChanged(CalendarSelectionChangedEventArgs)

Raises the SelectionChanged event.

OnSelectionChanging(CalendarSelectionChangingEventArgs)

Raises the SelectionChanging event.

OnViewModeChanged(EventArgs)

Raises the ViewModeChanged event.

OnYearSlotLoading(CalendarYearSlotLoadingEventArgs)

Raises the YearSlotLoading event.

Refresh()

Refreshes the control.

Events

Name Description
DayOfWeekSlotLoading

Occurs when an element representing a day of week is about to be created.

DaySlotLoading

Occurs when an element representing a day in the calendar is about to be created.

DisplayDateChanged

Occurs when the DisplayMonth property has changed.

DisplayDateChanging

Occurs before the DisplayMonth property changes.

HeaderLoading

Occurs when the header is being loaded.

MonthSlotLoading

Occurs when an element representing a month is about to be created.

SelectionChanged

Occurs when the SelectedDate or SelectedDates properties change.

SelectionChanging

Occurs before the selection changed.

ViewModeChanged

Occurs when the ViewMode has changed, such as when the user taps the month header.

YearSlotLoading

Occurs when an element representing a year in the calendar is about to be created.