ModernXamarinCalendar 1.0.2
See the version list below for details.
dotnet add package ModernXamarinCalendar --version 1.0.2
NuGet\Install-Package ModernXamarinCalendar -Version 1.0.2
<PackageReference Include="ModernXamarinCalendar" Version="1.0.2" />
paket add ModernXamarinCalendar --version 1.0.2
#r "nuget: ModernXamarinCalendar, 1.0.2"
// Install ModernXamarinCalendar as a Cake Addin #addin nuget:?package=ModernXamarinCalendar&version=1.0.2 // Install ModernXamarinCalendar as a Cake Tool #tool nuget:?package=ModernXamarinCalendar&version=1.0.2
Setup
Step 1
Install the Nuget Package using Nuget Package Manager or in the Package Manager Console run command:
Install-Package ModernXamarinCalendar -Version 1.0.2
Step 2
In the XAML content page where you would like the Calendar to go (such as MainPage.xaml), write within the Content Page Tag
xmlns:control="clr-namespace:ModernXamarinCalendar;assembly=ModernXamarinCalendar"
Step 3
Within your layout in the same XAML Page, place
<control:WeekControl x:Name="CalendarWeekControl"
HorizontalOptions="CenterAndExpand"
BackgroundColor="SteelBlue"/>
Step 4
In the c# code for your content page (such as MainPage.xaml.cs)
public void DateSelectedChanged(object sender, EventArgs e)
{
WeekControl calendar = sender as WeekControl;
// insert code here that you want to use the date selected for...
// control.DateSelected returns a DateTime for the selected day.
Debug.WriteLine(calendar.DateSelected.ToString());
}
Step 5
In the same c# file, write within the constructor
CalendarWeekControl.DataSelectedChanged += DateSelectedChanged;
Step 6
Download images from
GitHub - Images - Download this folder for icons for the nuget package
and install them in your project
Options
Show labels for the days of the week (SUN MON TUE WED THU FRI SAT)
In the XAML page, set this property for the WeekControl
:
ShowDayName="True"
or in the C# code:
CalendarWeekControl.ShowDayName = true;
(The default value for ShowDayName
is false, so not specifying it means the
days will not show up).
Notes
The font for the calendar is white, meaning that the calendar must be placed on a somewhat dark background in order to be visible.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Xamarin.Forms (>= 4.0.0.425677)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Fixed the row width for Calendar Days