PersianDateTimeWPFTools 1.0.5
See the version list below for details.
dotnet add package PersianDateTimeWPFTools --version 1.0.5
NuGet\Install-Package PersianDateTimeWPFTools -Version 1.0.5
<PackageReference Include="PersianDateTimeWPFTools" Version="1.0.5" />
<PackageVersion Include="PersianDateTimeWPFTools" Version="1.0.5" />
<PackageReference Include="PersianDateTimeWPFTools" />
paket add PersianDateTimeWPFTools --version 1.0.5
#r "nuget: PersianDateTimeWPFTools, 1.0.5"
#addin nuget:?package=PersianDateTimeWPFTools&version=1.0.5
#tool nuget:?package=PersianDateTimeWPFTools&version=1.0.5
Persian calendar
WPF calendar with support for Gregorian and solar calendars
A free Persian calendar with the ability to support the Gregorian calendar that can be used in WPF You can write any style you like for the controls.
Controls
- Clock
- PersianCalendar
- PersianDatePicker
- PersianDateTimePicker
- PersianCalendarWithClock
How to use?
Step 1: Add the following resources in the App.xaml file
<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary
Source="pack://application:,,,/PersianDateTimeWPFTools;component/Resources.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
Step 2: Use in XAML (WPF) files You can use below namespace in xaml (wpf)
xmlns:pdtt="https://github.com/Behnam2064/PersianDateTimeWPFTools"
Sample:
<Window
xmlns:pdtt="https://github.com/Behnam2064/PersianDateTimeWPFTools">
<Grid>
<pdtt:PersianCalendar />
</Grid>
</Window>
Dependency Properties
New Dependency Properties
Name | Description | Default |
---|---|---|
CustomCulture | Selecting a different culture than the current software culture | Based on the current software culture |
CustomCultureName | Choosing a culture name that is different from the current software culture (such as fa-IR or en-US) | Based on the current software culture |
AllowSelectBlackedOutDay | Selectable holidays | False |
ShowTodayButton | Show a button to move to the current day | False |
ShowConfirmButton | Show a button to display confirm button | False |
DisplayDate | Displays the current date | ? |
DisplayDateStart | Start displaying the date | ? |
DisplayDateEnd | End of displaying date | ? |
DisplayMode | Date display type (like Month,Year,Decade) | Month |
FirstDayOfWeek | First day of the week | Sunday |
SelectionMode | Type of selection | SingleDate |
IsTodayHighlighted | Show current day as highlights | True |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net7.0-windows7.0 is compatible. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0-windows was computed. |
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.1
- No dependencies.
-
net6.0-windows7.0
- No dependencies.
-
net7.0-windows7.0
- No dependencies.
-
net8.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.
-Fix UI related to IsTodayHighlighted
-The problem with selecting the year and decade in the PersianDateTimePicker and PersianCalendarWithClock controls has been resolved.
-ShowConfirmButton Dependency Property added to PersianCalendar
-ConfirmButtonClicked Event added to PersianCalendar
-PersianCalendar style changed
-ShowConfirmButton Dependency Property added to PersianCalendarWithClock
-ConfirmButtonClicked Event added to PersianCalendarWithClock
-ShowConfirmButton Dependency Property added to PersianDateTimePicker
-ConfirmButtonClicked Event added to PersianDateTimePicker
-CalendarStyle Dependency Property added to PersianCalendarWithClock