FactoryMind.Calendar.iOS
1.5.4
dotnet add package FactoryMind.Calendar.iOS --version 1.5.4
NuGet\Install-Package FactoryMind.Calendar.iOS -Version 1.5.4
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="FactoryMind.Calendar.iOS" Version="1.5.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FactoryMind.Calendar.iOS" Version="1.5.4" />
<PackageReference Include="FactoryMind.Calendar.iOS" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FactoryMind.Calendar.iOS --version 1.5.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FactoryMind.Calendar.iOS, 1.5.4"
#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.
#:package FactoryMind.Calendar.iOS@1.5.4
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FactoryMind.Calendar.iOS&version=1.5.4
#tool nuget:?package=FactoryMind.Calendar.iOS&version=1.5.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FMCalendar control is a calendar view for your iPhone or iPad app.
It can be easily added to your iOS app, and allows you to customize it's appearance and to handle it's events.
All the day and month names are automatically localized, based on the system language.
Here is an example on how it works:
using Factorymind.Components;
...
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
fmCalendar = new FMCalendar (View.Bounds);
View.BackgroundColor = UIColor.White;
// Specify selection color
fmCalendar.SelectionColor = UIColor.Red;
// Specify today circle Color
fmCalendar.TodayCircleColor = UIColor.Red;
// Customizing appearance
fmCalendar.LeftArrow = UIImage.FromFile ("leftArrow.png");
fmCalendar.RightArrow = UIImage.FromFile ("rightArrow.png");
fmCalendar.MonthFormatString = "MMMM yyyy";
// Shows Sunday as last day of the week
fmCalendar.SundayFirst = false;
// Mark with a dot dates that fulfill the predicate
fmCalendar.IsDayMarkedDelegate = (date) =>
{
return date.Day % 2 == 1;
};
// Turn gray dates that fulfill the predicate
fmCalendar.IsDateAvailable = (date) =>
{
return (date >= DateTime.Today);
};
fmCalendar.MonthChanged = (date) =>
{
Console.WriteLine ("Month changed {0}", date.Date);
};
fmCalendar.DateSelected += (date) =>
{
Console.WriteLine ("Date selected: {0}", date);
};
// Add FMCalendar to SuperView
fmCalendar.Center = this.View.Center;
this.View.AddSubview (fmCalendar);
}
Inspired by Eduardo Scoz https://github.com/escoz
Product | Versions Compatible and additional computed target framework versions. |
---|---|
Xamarin.iOS | xamarinios is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
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.5.4 | 1,512 | 5/14/2018 |