[]
        
(Showing Draft Content)

C1.Xamarin.Forms.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.Xamarin.Forms.Calendar
Assembly: C1.Xamarin.Forms.Calendar.dll
Syntax
public class C1Calendar : View, IComponent, IDisposable

Constructors

Name Description
C1Calendar()

Initializes a new instance of the C1Calendar class.

Fields

Name Description
AdjacentDaySlotTemplateProperty
AdjacentDayTextColorProperty
BorderColorProperty
BorderWidthProperty
DayBorderColorProperty
DayBorderWidthProperty
DayOfWeekBackgroundColorProperty
DayOfWeekFontAttributesProperty
DayOfWeekFontFamilyProperty
DayOfWeekFontSizeProperty
DayOfWeekFormatProperty
DayOfWeekSlotTemplateProperty
DayOfWeekTextColorProperty
DayPaddingProperty
DaySlotTemplateProperty
DisabledTextColorProperty
DisplayDateProperty
FirstDayOfWeekProperty
FontFamilyProperty
FontSizeProperty
HeaderBackgroundColorProperty
HeaderFontAttributesProperty
HeaderFontFamilyProperty
HeaderFontSizeProperty
HeaderMonthFormatProperty
HeaderTextColorProperty
IsAnimatedProperty
MaxDateProperty
MaxSelectionCountProperty
MinDateProperty
OrientationProperty
SelectedDateProperty
SelectedDatesProperty
SelectionBackgroundColorProperty
SelectionTextColorProperty
ShowHeaderProperty
ShowNavigationButtonsProperty
TextColorProperty
TodayBackgroundColorProperty
TodayFontAttributesProperty
TodayFontFamilyProperty
TodayFontSizeProperty
TodayTextColorProperty
ViewModeProperty

Properties

Name Description
ActualDisplayDate

Gets the actual DisplayDate considering MinDate and MaxDate.

ActualFirstDayOfWeek

Gets the actual first day of week, if FirstDayOfWeek is not specified the value will be get from the system.

ActualMaxDate

Gets the actual MaxDate.

ActualMinDate

Gets the actual MinDate.

AdjacentDaySlotTemplate

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

AdjacentDayTextColor

Gets or sets the color of the adjacent days text.

BorderColor

Gets or sets the color of the calendar's border.

BorderWidth

Gets or sets the width of the calendar's border.

CanGoBack

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

CanGoForward

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

DayBorderColor

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

DayBorderWidth

Gets or sets the border thickness between day slots.

DayOfWeekBackgroundColor

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

DayOfWeekFontAttributes

Gets or sets a value indicating whether the day of week font is bold, italic or neither.

DayOfWeekFontFamily

Gets or sets the day of week font family.

DayOfWeekFontSize

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

DayOfWeekFormat

Gets or sets the format string which is used for representing day of week names.

DayOfWeekSlotTemplate

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

DayOfWeekTextColor

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

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.

DisabledTextColor

Gets or sets the color for the text of 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.

FontFamily

Gets or sets the default calendar font family.

FontSize

Gets or sets the font size for the default calendar.

HeaderBackgroundColor

Gets or sets the background color for the header.

HeaderFontAttributes

Gets or sets a value indicating whether the header font is bold, italic or neither.

HeaderFontFamily

Gets or sets the header font family.

HeaderFontSize

Gets or sets the font size for the header.

HeaderMonthFormat

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

HeaderTextColor

Gets or sets the color for the header text.

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.

MinDate

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

NavigateAnimation

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

Orientation

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

SelectedDate

Gets or sets the currently selected date.

SelectedDates

Gets or sets the list of selected dates.

SelectionBackgroundColor

Gets or sets the color used to highlight selected dates.

SelectionTextColor

Gets or sets the color for selected date text.

ShowHeader

Gets or sets a value indicating whether the control displays the header area with the current month and navigation buttons.

ShowNavigationButtons

Gets or sets a value indicating whether the control displays the default navigation buttons.

Site

IComponent Site

TextColor

Gets or sets the color of the text within the calendar.

TodayBackgroundColor

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

TodayFontAttributes

Gets or sets a value indicating whether the today font is bold, italic or neither.

TodayFontFamily

Gets or sets the today font family.

TodayFontSize

Gets or sets the font size for the today.

TodayTextColor

Gets or sets the color for the text of the today day 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.

Methods

Name Description
ChangeViewModeAsync(CalendarViewMode, DateTime?, bool)

Changes the view mode asynchronously performing an animation.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GoBackAsync(bool)

Navigates backwards.

GoForwardAsync(bool)

Navigates forward.

OnDayOfWeekSlotLoading(CalendarDayOfWeekSlotLoadingEventArgs)

Raises the DayOfWeekSlotLoading event.

OnDaySlotLoading(CalendarDaySlotLoadingEventArgs)

Raises the DaySlotLoading event.

OnDisplayDateChanged(EventArgs)

Raises the DisplayDateChanged event.

OnDisplayDateChanging(EventArgs)

Raises the DisplayDateChanging event.

OnHeaderLoading(CalendarHeaderLoadingEventArgs)

Raises the HeaderLoading event.

OnMonthSlotLoading(CalendarMonthSlotLoadingEventArgs)

Raises the MonthSlotLoading event.

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.

Disposed

Occurs when the object is disposed.

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.