Skip to content

HesamKashefi/PersianDatePickerPlus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Persian date picker for .NET WPF (.NET Core)

Documentations

For documentaions go to WIKI

Build Status

build

NuGet

ManyConsole

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

image

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

Hesam Kashefi

Thanks to

  • Mohsens22 and Arash Sahebolamri, for making this library at first place.

About

A Persian DatePicker and Caledar for WPF (.NET Core)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages