mirror of
https://github.com/gusmanb/XamForms.Controls.Calendar
synced 2026-07-21 02:03:52 +00:00
No description
- C# 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| Example/CalendarDemo | ||
| XamForms.Controls.Calendar | ||
| XamForms.Controls.Calendar.Droid | ||
| XamForms.Controls.Calendar.iOS | ||
| XamForms.Controls.Calendar.UWP | ||
| XamForms.Controls.Calendar.Windows | ||
| XamForms.Controls.Calendar.WinPhone | ||
| Android.png | ||
| icon.png | ||
| iOS.png | ||
| LICENSE | ||
| README.md | ||
| UWP.png | ||
| Win8.png | ||
| WinPhone.png | ||
| XamForms.Controls.Calendar.nuspec | ||
| XamForms.Controls.Calendar.sln | ||
Calendar Control Plugin for Xamarin.Forms
A simple Calendar control for your Xamarin.Forms projects
Setup
- Available on NuGet: https://www.nuget.org/packages/XamForms.Controls.Calendar/
- Install into your PCL project and Client projects.
In your iOS, Android, and Windows projects call:
Xamarin.Forms.Init();//platform specific init
XamForms.Controls.<PLATFORM>.Calendar.Init();
You must do this AFTER you call Xamarin.Forms.Init();
Usage
Here is a sample:
new Calendar
{
BorderColor = Color.Gay,
BorderWidth = 3,
BackgroundColor = Color.Gay,
StartDay = DayOfWeek.Sunday,
StartDate = DateTime.Now
}
XAML:
First add the xmlns namespace:
xmlns:controls="clr-namespace:XamForms.Controls;assembly=XamForms.Controls.Calendar"
Then add the xaml:
<controls:CalendarControl Padding="10,0,10,0" StartDay="Monday" SelectedBorderWidth="4" DisabledBorderColor="Black">
Bindable Properties
- DateTime?
SelectedDateGets or sets a date the selected date - DateTime?
MinDateGets or sets the maximum date. - DateTime?
MaxDateGets or sets the minimum date. - DateTime
StartDateGets or sets a date, to pick the month, the calendar is focused on - DayOfWeek
StartDayGets or sets the day the calendar starts the week with. - int
BorderWidthGets or sets the border width of the calendar. - int
OuterBorderWidthGets or sets the width of the whole calandar border. - Color
BorderColorGets or sets the border color of the calendar. - Color
DatesBackgroundColorGets or sets the background color of the normal dates. - Color
DatesTextColorGets or sets the text color of the normal dates. - Color
DatesTextColorOutsideMonthGets or sets the text color of the dates not in the focused month. - Color
DatesBackgroundColorOutsideMonthGets or sets the background color of the dates not in the focused month. - double
DatesFontSizeGets or sets the font size of the normal dates. - Color ``````WeekdaysTextColor``` Gets or sets the text color of the weekdays labels.
- Color
WeekdaysBackgroundColorGets or sets the background color of the weekdays labels. - double
WeekdaysFontSizeGets or sets the font size of the weekday labels. - string
WeekdaysFormatGets or sets the date format of the weekday labels. - bool
WeekdaysShowGets or sets wether to show the weekday labels. - bool
MonthNavigationShowGets or sets wether to show the month navigation. - string
TitleLabelFormatGets or sets the format of the title in the month navigation. - Label
TitleLabelGets the title label in the month navigation. - CalendarButton
TitleLeftArrowGets the left button of the month navigation. - CalendarButton
TitleRightArrowGets the right button of the month navigation. - int
SelectedBorderWidthGets or sets the border width of the selected date. - Color
SelectedBorderColorGets or sets the color of the selected date. - Color?
SelectedBackgroundColorGets or sets the background color of the selected date. - Color?
SelectedTextColorGets or sets the text color of the selected date. - double
SelectedFontSizeGets or sets the font size of the selected date. - int
DisabledBorderWidthGets or sets the border width of the disabled dates. - Color
DisabledBorderColorGets or sets the border color of the disabled dates. - Color
DisabledBackgroundColorGets or sets the background color of the disabled dates. - Color
DisabledTextColorGets or sets the text color of the disabled dates. - double
DisabledFontSizeGets or sets the font size of the disabled dates. - ICommand
DateCommandGets or sets the selected date command. - ICommand
RightArrowCommandGets or sets the when the right arrow was pressed command. - ICommand
LeftArrowCommandGets or sets the when the left arrow was pressed command.
Contributors
License
https://github.com/rebeccaXam/XamForms.Controls.Calendar/blob/master/LICENSE