FCG.XamForms.Controls.Calendar 1.1.2

There is a newer version of this package available.
See the version list below for details.

Requires NuGet 2.8.1 or higher.

dotnet add package FCG.XamForms.Controls.Calendar --version 1.1.2                
NuGet\Install-Package FCG.XamForms.Controls.Calendar -Version 1.1.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FCG.XamForms.Controls.Calendar" Version="1.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FCG.XamForms.Controls.Calendar --version 1.1.2                
#r "nuget: FCG.XamForms.Controls.Calendar, 1.1.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FCG.XamForms.Controls.Calendar as a Cake Addin
#addin nuget:?package=FCG.XamForms.Controls.Calendar&version=1.1.2

// Install FCG.XamForms.Controls.Calendar as a Cake Tool
#tool nuget:?package=FCG.XamForms.Controls.Calendar&version=1.1.2                

Calendar Control Plugin for Xamarin.Forms

A simple Calendar control for your Xamarin.Forms projects

Setup

<p align="center"> <img src="https://raw.githubusercontent.com/rebeccaXam/XamForms.Controls.Calendar/master/images/iOS.png" height="200"/> <img src="https://raw.githubusercontent.com/rebeccaXam/XamForms.Controls.Calendar/master/images/Android.png" height="200"/> <img src="https://raw.githubusercontent.com/rebeccaXam/XamForms.Controls.Calendar/master/images/WinPhone.png" height="200"/> <img src="https://raw.githubusercontent.com/rebeccaXam/XamForms.Controls.Calendar/master/images/Win8.png" height="200"/> <img src="https://raw.githubusercontent.com/rebeccaXam/XamForms.Controls.Calendar/master/images/UWP.png" height="200"/> <img src="https://raw.githubusercontent.com/rebeccaXam/XamForms.Controls.Calendar/master/images/BackgroundPatternDroid.png" height="200"/> <img src="https://raw.githubusercontent.com/rebeccaXam/XamForms.Controls.Calendar/master/images/BackgroundpatterniOS.png" height="200"/> </p>

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();

IMPORTANT: I you are having problems like: When Changing Months, the days do not update properly in, try adding this to your projects AssemblyInfo.cs:

[assembly:Xamarin.Forms.Platform.<Platform>.ExportRenderer(typeof(XamForms.Controls.CalendarButton), typeof(XamForms.Controls.<Platform>.CalendarButtonRenderer))]

Troubleshoot

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:Calendar Padding="10,0,10,0" StartDay="Monday" SelectedBorderWidth="4" DisabledBorderColor="Black" />
Documentation: Wiki
Contributors
License

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

Product Compatible and additional computed target framework versions.
MonoAndroid monoandroid10 is compatible. 
MonoTouch monotouch10 is compatible. 
Universal Windows Platform uap10 is compatible. 
Xamarin.iOS xamarinios10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.3 6,339 11/29/2017
1.1.2 1,210 9/30/2017

[1.1.2]
- New feature: bindable property to set a semanal event
[1.1.1]
- Fix SelectedDate does not select the date in the calendar when set
- Fix Android SpecialDate background image ghost on wrong date when switching months
- Add Special Date text option for Android/iOS
- Add OnStartRenderCalendar and OnEndRenderCalendar events for rendering of the calendar and isRendering
- Trying to fix borders not visible
[1.1.0]
- Update Xamarin.Forms from 2.1.0.6521 to 2.3.4.231
- Added new DisableDatesLimitToMaxMinRange (when true) to disallow to show dates outside min-max daterange
- Added FontFamily properties for: DatesFontFamily,DatesFontFamilyOutsideMonth, DisabledFontFamily, WeekdaysFontFamily, SelectedFontFamily and specialdates.FontFamily
- Add SpecialDate.BackgroundImage to set a background image (Android and iOS only)
- Fix Windows exception at init
- Fix from SelectedBackgroundColor and SelectedTextColor xaml crash
- Fix for random null reference crash at async of FillCalendarWindows, removed async logic
- Fix SpecialDates xaml binding with ObservableCollection, SpecialDates is now of type ICollection
[1.0.8]
- Feature request: bindable property to set CalendarWeekRule
- Should be better: Day button borders on UWP sometimes is not visible
- Feature request: Make background of a date multicolored
- Feature request: Show more than one month (scrollable)
- Fixed: Selected date no highlight on start
- Fixed: "Object reference not set to an instance" exception when binding to SelectedDates Property
- Feature request: make the color of the month arrows a bindable property
- Feature request: bindable property to choose whether month label is bold
[1.0.7]
 - Fix for Android StackOverflow problem when ShowNumberOfWeek is enabled
 [1.0.6]
  - Add 'DisableAllDates', make it possible to disable all dates by default (you can enable again with SpecialDates)
   - Add Month and Year view for Calendar
   - Add 'Show' to show number of the week
   - Add missing property WeekdaysFontAttributes
   - Fix WeekdaysTextColor was not set
   - Fix SelectedDate is now TwoWay binding
   [1.0.5]
   - Add support to select multiple dates
   - Fix background color for Special Dates that where selected/deselected
   [1.0.4]
   - Fixed Missing references: Cannot locate resource from ‘ms-appx:///XamForms.Controls.Calendar.UWP/Resources.xaml’.
           [1.0.3]
           - Windows is working now
   - Extra Special Dates where you can change the style of specific dates
   - Some fixes
           [1.0.2]
           - Initital Calandar Control (No Windows yet)
   - Some fixes