No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2016-06-03 15:23:40 +02:00
Example/CalendarDemo Making windows work 2016-06-03 12:56:11 +02:00
XamForms.Controls.Calendar Making windows work 2016-06-03 12:56:11 +02:00
XamForms.Controls.Calendar.Droid Fix init issue, Renderers are not loaded 2016-06-02 19:02:27 +02:00
XamForms.Controls.Calendar.iOS Fix init issue, Renderers are not loaded 2016-06-02 19:02:27 +02:00
XamForms.Controls.Calendar.UWP Change some images and load resources with compiler flags 2016-06-03 15:12:19 +02:00
XamForms.Controls.Calendar.Windows Change some images and load resources with compiler flags 2016-06-03 15:12:19 +02:00
XamForms.Controls.Calendar.WinPhone Change some images and load resources with compiler flags 2016-06-03 15:12:19 +02:00
Android.png Change some images and load resources with compiler flags 2016-06-03 15:12:19 +02:00
icon.png Fix uploaded wrong images 2016-06-02 16:35:13 +02:00
iOS.png Change some images and load resources with compiler flags 2016-06-03 15:12:19 +02:00
LICENSE Initial commit 2016-05-30 14:32:08 +02:00
README.md Update README.md 2016-06-03 15:23:40 +02:00
UWP.png Change some images and load resources with compiler flags 2016-06-03 15:12:19 +02:00
Win8.png Change some images and load resources with compiler flags 2016-06-03 15:12:19 +02:00
WinPhone.png Change some images and load resources with compiler flags 2016-06-03 15:12:19 +02:00
XamForms.Controls.Calendar.nuspec Change some images and load resources with compiler flags 2016-06-03 15:12:19 +02:00
XamForms.Controls.Calendar.sln Initial commit 2016-05-30 15:17:09 +02:00

Calendar Control Plugin for Xamarin.Forms

A simple Calendar control for your Xamarin.Forms projects

Setup

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? SelectedDate Gets or sets a date the selected date
  • DateTime? MinDate Gets or sets the maximum date.
  • DateTime? MaxDate Gets or sets the minimum date.
  • DateTime StartDate Gets or sets a date, to pick the month, the calendar is focused on
  • DayOfWeek StartDay Gets or sets the day the calendar starts the week with.
  • int BorderWidth Gets or sets the border width of the calendar.
  • int OuterBorderWidth Gets or sets the width of the whole calandar border.
  • Color BorderColor Gets or sets the border color of the calendar.
  • Color DatesBackgroundColor Gets or sets the background color of the normal dates.
  • Color DatesTextColor Gets or sets the text color of the normal dates.
  • Color DatesTextColorOutsideMonth Gets or sets the text color of the dates not in the focused month.
  • Color DatesBackgroundColorOutsideMonth Gets or sets the background color of the dates not in the focused month.
  • double DatesFontSize Gets or sets the font size of the normal dates.
  • Color ``````WeekdaysTextColor``` Gets or sets the text color of the weekdays labels.
  • Color WeekdaysBackgroundColor Gets or sets the background color of the weekdays labels.
  • double WeekdaysFontSize Gets or sets the font size of the weekday labels.
  • string WeekdaysFormat Gets or sets the date format of the weekday labels.
  • bool WeekdaysShow Gets or sets wether to show the weekday labels.
  • bool MonthNavigationShow Gets or sets wether to show the month navigation.
  • string TitleLabelFormat Gets or sets the format of the title in the month navigation.
  • Label TitleLabel Gets the title label in the month navigation.
  • CalendarButton TitleLeftArrow Gets the left button of the month navigation.
  • CalendarButton TitleRightArrow Gets the right button of the month navigation.
  • int SelectedBorderWidth Gets or sets the border width of the selected date.
  • Color SelectedBorderColor Gets or sets the color of the selected date.
  • Color? SelectedBackgroundColor Gets or sets the background color of the selected date.
  • Color? SelectedTextColor Gets or sets the text color of the selected date.
  • double SelectedFontSize Gets or sets the font size of the selected date.
  • int DisabledBorderWidth Gets or sets the border width of the disabled dates.
  • Color DisabledBorderColor Gets or sets the border color of the disabled dates.
  • Color DisabledBackgroundColor Gets or sets the background color of the disabled dates.
  • Color DisabledTextColor Gets or sets the text color of the disabled dates.
  • double DisabledFontSize Gets or sets the font size of the disabled dates.
  • ICommand DateCommand Gets or sets the selected date command.
  • ICommand RightArrowCommand Gets or sets the when the right arrow was pressed command.
  • ICommand LeftArrowCommand Gets or sets the when the left arrow was pressed command.

Contributors

License

https://github.com/rebeccaXam/XamForms.Controls.Calendar/blob/master/LICENSE