PersianUIControlsMaui 1.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package PersianUIControlsMaui --version 1.0.6                
NuGet\Install-Package PersianUIControlsMaui -Version 1.0.6                
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="PersianUIControlsMaui" Version="1.0.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PersianUIControlsMaui --version 1.0.6                
#r "nuget: PersianUIControlsMaui, 1.0.6"                
#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.
// Install PersianUIControlsMaui as a Cake Addin
#addin nuget:?package=PersianUIControlsMaui&version=1.0.6

// Install PersianUIControlsMaui as a Cake Tool
#tool nuget:?package=PersianUIControlsMaui&version=1.0.6                

Persian UI Controls Maui

Persian Calendar & some other controls for .NET MAUI

To use this package in your MAUI project use the below code in your MauiProgram.cs file

Deployment

To deploy this project run

  public static class MauiProgram
    {
        public static MauiApp CreateMauiApp()
        {
            var builder = MauiApp.CreateBuilder();
            builder
                .UseMauiApp<App>()
                .ConfigureFonts(fonts =>
                    {
                        fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                        fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
                    })
                .UseMauiCommunityToolkit()
                .UsePersianUIControls();
            return builder.Build();
        }
    }

XAML:

xmlns:persian="clr-namespace:PersianUIControlsMaui.Controls;assembly=PersianUIControlsMaui"

<persian:DatePicker PlaceHolder="تاریخ شروع" SelectedPersianDate="{Binding PersianDate}" 
CalendarOption="{Binding CalendarOption}" DisplayFormat="yyyy/MM/dd" 
OnChangeDateCommand="{Binding OnChangeDateCommand}"/>

CalendarOption:

CalendarOption = new CalendarOptions()
            {
                SelectDateMode = PersianUIControlsMaui.Enums.SelectionDateMode.Day,
                SelectionMode = PersianUIControlsMaui.Enums.SelectionMode.Single,
                SelectDayColor = Colors.Orange,
                AutoCloseAfterSelectDate = false,
                OnAccept = OnAcceptDate,
                OnCancel = new Action(() => { }),
                MinDateCanSelect = DateTime.Now.AddDays(-3),
                MaxDateCanSelect = DateTime.Now.AddDays(4),
                CanSelectHolidays = false
            };

Use Dialogs:

inject in constructor => IDialogService dialogService

private void ShowConfirm(object obj)
        {
            dialogService.Confirm(new ConfirmConfig()
            {
                Title = "حذف کالا",
                AcceptText = "آره",
                CancelText = "نه",
                Message = "نسبت به حذف آیتم انتخابی اطمینان دارید؟",
                Icon = MessageIcon.QUESTION,
                OnAction = new Action<bool>((arg) => { }),
            });
        }

Screenshots

App Screenshot

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-android31.0 is compatible.  net6.0-ios was computed.  net6.0-ios16.1 is compatible.  net6.0-maccatalyst was computed.  net6.0-maccatalyst16.1 is compatible.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net6.0-windows10.0.19041 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.2 150 8/16/2024 2.0.2 is deprecated because it is no longer maintained.
2.0.1 190 2/2/2024
2.0.0 269 11/20/2023
1.0.8 149 11/10/2023
1.0.7 161 10/22/2023
1.0.6 154 10/7/2023
1.0.5 171 9/11/2023
1.0.4.2 160 8/1/2023
1.0.4.1 196 7/23/2023
1.0.4 173 7/15/2023
1.0.3.1 159 6/25/2023
1.0.3 156 6/24/2023
1.0.2 157 6/19/2023
1.0.1 146 6/9/2023
1.0.0 153 6/5/2023