PersianDateControlsPlus 2.0.0-preview5
See the version list below for details.
dotnet add package PersianDateControlsPlus --version 2.0.0-preview5
NuGet\Install-Package PersianDateControlsPlus -Version 2.0.0-preview5
<PackageReference Include="PersianDateControlsPlus" Version="2.0.0-preview5" />
paket add PersianDateControlsPlus --version 2.0.0-preview5
#r "nuget: PersianDateControlsPlus, 2.0.0-preview5"
// Install PersianDateControlsPlus as a Cake Addin #addin nuget:?package=PersianDateControlsPlus&version=2.0.0-preview5&prerelease // Install PersianDateControlsPlus as a Cake Tool #tool nuget:?package=PersianDateControlsPlus&version=2.0.0-preview5&prerelease
<p align="center"> <strong>A Persian date picker for .NET WPF (.NET Core)</strong> </p>
Documentations
For documentaions go to WIKI
Build Status
NuGet
<p> <a href="http://nuget.org/List/Packages/PersianDateControlsPlus"> <img alt="ManyConsole" src="https://img.shields.io/nuget/v/PersianDateControlsPlus.svg"> </a>
How to use
First, install this package:
Install-Package PersianDateControlsPlus
Add this code at the top of your App.xaml:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/PersianDateControlsPlus;component/Themes/PersianDateControlsPlus.Defaults.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
Then add this code at the top of your Xaml:
xmlns:PersianDateControlsPlus="clr-namespace:PersianDateControlsPlus;assembly=PersianDateControlsPlus"
then paste
<PersianDateControlsPlus:PersianDatePicker />
Whereever you wanted to use persian calender.
A sample project is present Here
About Perisan calendar
The Persian calendar is a sonar calendar, like Gregorian calendar, but there are some differences. One is that the origins are different, and the Persian calendar's origin is about 621 years after Gregorian calendar's; another one is that Persian calendar's first day of year is March 21; and probably the most important one is that the average length of a Persian calendar year is different from that of a Gregorian calendar: the Persian calendar has 8 leap years (that is a year that has an extra day than normal years) in each 33 years, whereas the Gregorian calendar has 8 leap years in each 32 years. This little difference means that Persian dates cannot be calculated directly from Gregorian dates.
Additional documentation Persian documentation
Developed By
Thanks to
- Mohsens22 and Arash Sahebolamri, for making this library at first place.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0-windows7.0 is compatible. net6.0-windows was computed. net7.0-windows was computed. net8.0-windows was computed. |
-
net5.0-windows7.0
- 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 |
---|---|---|
2.0.0 | 177 | 3/7/2024 |
2.0.0-preview5 | 92 | 2/23/2024 |
2.0.0-preview4 | 76 | 2/21/2024 |
2.0.0-preview3 | 79 | 2/21/2024 |
2.0.0-preview2 | 86 | 2/21/2024 |
2.0.0-preview1 | 85 | 2/19/2024 |
Added ability to customize ui
Added ability to clear date (null value as selected date)
Added today button
Improvements