[]
        
(Showing Draft Content)

C1.Android.Calendar.C1Calendar

C1Calendar Class

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

Inheritance
C1Calendar
Implements
IComponent
IDisposable
Namespace: C1.Android.Calendar
Assembly: C1.Android.Calendar.dll
Syntax
public class C1Calendar : FrameLayout, IDependencyObject, IComponent, IDisposable, IFlowDirection

Constructors

Name Description
C1Calendar(Context)

Initializes a new instance of the C1Calendar class.

C1Calendar(Context, IAttributeSet)

Initializes a new instance of the C1Calendar class.

Fields

Name Description
AdjacentDayTextColorProperty
BackgroundColorProperty
BorderColorProperty
BorderWidthProperty
CalendarTypeProperty
DayBorderColorProperty
DayBorderWidthProperty
DayOfWeekBackgroundColorProperty
DayOfWeekFormatProperty
DayOfWeekTextColorProperty
DayOfWeekTextSizeProperty
DayOfWeekTypefaceProperty
DayPaddingProperty
DisabledTextColorProperty
DisplayDateProperty
FirstDayOfWeekProperty
FlowDirectionProperty

Identifies the FlowDirection dependency property.

HeaderBackgroundColorProperty
HeaderMonthFormatProperty
HeaderTextColorProperty
HeaderTextSizeProperty
HeaderTypefaceProperty
IsAnimatedProperty
MaxDateProperty
MaxSelectionCountProperty
MinDateProperty
OrientationProperty
SelectedDateProperty
SelectedDatesProperty
SelectionBackgroundColorProperty
SelectionTextColorProperty
ShowHeaderProperty
ShowNavigationButtonsProperty
TextColorProperty
TextSizeProperty
TodayBackgroundColorProperty
TodayTextColorProperty
TodayTextSizeProperty
TodayTypefaceProperty
TypefaceProperty
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.

AdjacentDayTextColor

Gets or sets the color of the adjacent days text.

BackgroundColor

Gets or sets a the background color of the calendar.

BorderColor

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

BorderWidth

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

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.

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.

DayOfWeekFormat

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

DayOfWeekTextColor

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

DayOfWeekTextSize

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

DayOfWeekTypeface

Gets or sets the day of week typeface.

DayPadding

Gets or sets the padding of the day slots.

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.

FlowDirection

Gets or sets a value that indicates whether that content should flow.

HeaderBackgroundColor

Gets or sets the background color 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.

HeaderTextSize

Gets or sets the font size for the header.

HeaderTypeface

Gets or sets the header typeface.

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.

TextSize

Gets or sets the font size for the default calendar.

TodayBackgroundColor

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

TodayTextColor

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

TodayTextSize

Gets or sets the font size for the today.

TodayTypeface

Gets or sets the today typeface.

Typeface

Gets or sets the default calendar typeface.

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, Nullable<DateTime>, bool)

Changes the view mode asynchronously performing an animation.

Dispose(bool)
GoBackAsync(bool)

Navigates backwards.

GoForwardAsync(bool)

Navigates forward.

OnAttachedToWindow()
OnDayOfWeekSlotLoading(CalendarDayOfWeekSlotLoadingEventArgs)

Raises the DayOfWeekSlotLoading event.

OnDaySlotLoading(CalendarDaySlotLoadingEventArgs)

Raises the DaySlotLoading event.

OnDetachedFromWindow()
OnDisplayDateChanged(EventArgs)

Raises the DisplayDateChanged event.

OnDisplayDateChanging(EventArgs)

Raises the DisplayDateChanging event.

OnHeaderLoading(CalendarHeaderLoadingEventArgs)

Raises the HeaderLoading event.

OnLayout(bool, int, int, int, int)
OnMeasure(int, int)
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.

SetBackgroundColor(Color)

Override view.SetBackgroundColor to make this.BackgroundColor sync.

UpdateLayoutDirection(FlowDirection)

Update layout of control based on FlowDirection property.

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.