PersianUIControlsMaui 2.0.1

dotnet add package PersianUIControlsMaui --version 2.0.1
NuGet\Install-Package PersianUIControlsMaui -Version 2.0.1
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="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PersianUIControlsMaui --version 2.0.1
#r "nuget: PersianUIControlsMaui, 2.0.1"
#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=2.0.1

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

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

Controls

  • Persian DatePicker Single, Multiple, Range
  • TreeView None, Single, Multiple
  • TabView
  • SlideButton
  • Picker Single, Multiple
  • Dialogs Alter, Confirm, Prompt, Custom
  • Expander
  • Entry
  • Editor
  • AutoCompleteView Comming Soon...

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 net8.0 is compatible.  net8.0-android was computed.  net8.0-android34.0 is compatible.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-ios17.2 is compatible.  net8.0-maccatalyst was computed.  net8.0-maccatalyst17.2 is compatible.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows10.0.19041 is compatible. 
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.1 123 2/2/2024
2.0.0 213 11/20/2023
1.0.8 106 11/10/2023
1.0.7 133 10/22/2023
1.0.6 120 10/7/2023
1.0.5 126 9/11/2023
1.0.4.2 142 8/1/2023
1.0.4.1 169 7/23/2023
1.0.4 147 7/15/2023
1.0.3.1 136 6/25/2023
1.0.3 129 6/24/2023
1.0.2 123 6/19/2023
1.0.1 127 6/9/2023
1.0.0 134 6/5/2023