PersianUIControlsMaui 2.0.2
Suggested Alternatives
dotnet add package PersianUIControlsMaui --version 2.0.2
NuGet\Install-Package PersianUIControlsMaui -Version 2.0.2
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.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PersianUIControlsMaui --version 2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PersianUIControlsMaui, 2.0.2"
#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.2 // Install PersianUIControlsMaui as a Cake Tool #tool nuget:?package=PersianUIControlsMaui&version=2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
Product | Versions 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.5 is compatible. net8.0-maccatalyst was computed. net8.0-maccatalyst17.5 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.
-
net8.0
- CommunityToolkit.Maui (>= 7.0.1)
- Microsoft.Maui.Controls (>= 8.0.10)
-
net8.0-android34.0
- CommunityToolkit.Maui (>= 7.0.1)
- Microsoft.Maui.Controls (>= 8.0.10)
-
net8.0-ios17.5
- CommunityToolkit.Maui (>= 7.0.1)
- Microsoft.Maui.Controls (>= 8.0.10)
-
net8.0-maccatalyst17.5
- CommunityToolkit.Maui (>= 7.0.1)
- Microsoft.Maui.Controls (>= 8.0.10)
-
net8.0-windows10.0.19041
- CommunityToolkit.Maui (>= 7.0.1)
- Microsoft.Maui.Controls (>= 8.0.10)
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.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 |