Xam.Plugins.NepaliDatePicker
1.0.2
dotnet add package Xam.Plugins.NepaliDatePicker --version 1.0.2
NuGet\Install-Package Xam.Plugins.NepaliDatePicker -Version 1.0.2
<PackageReference Include="Xam.Plugins.NepaliDatePicker" Version="1.0.2" />
paket add Xam.Plugins.NepaliDatePicker --version 1.0.2
#r "nuget: Xam.Plugins.NepaliDatePicker, 1.0.2"
// Install Xam.Plugins.NepaliDatePicker as a Cake Addin #addin nuget:?package=Xam.Plugins.NepaliDatePicker&version=1.0.2 // Install Xam.Plugins.NepaliDatePicker as a Cake Tool #tool nuget:?package=Xam.Plugins.NepaliDatePicker&version=1.0.2
Nepali Date Picker for Xamarin Forms
Usage
- Import namespace in your xaml file
xmlns:CustomControls="clr-namespace:Xam.Plugins.NepaliDatePicker.CustomControls;assembly=Xam.Plugins.NepaliDatePicker"
- Use CustomControl wherever required
<CustomControls:NepaliDatePickerEntry DateFormat="mDy" Separator="/" CurrentDate="04/31/2078" />
- Since, it uses Rg.Plugins.Popup for showing calendar , initialise it in platform specific projects.
Available Bindable Properties
This plugin is a customisation on existing Entry . So, you can use all existing bindable properties of entry. Below are the bindable properties provided by this plugin
CurrentDate
Provide initial Value to the control by setting value in this property .Value defaults to String.Empty
Separator
Takes char value and used to separate the day,month and year parts . Value defaults to "-"
DateFormat
Gets/Sets Text value in control in specified format . Available Options are
- yMd
- dMy
- mDy
Value defaults to yMd
DisplayLanguage
Shows date picker popup in Selected language. Available languages are
1.English
2.Nepali
Get Notified on Every Date Selection
Whenever date selection is made , event is published through Messaging Center. You can subscribe to date_selected event and perform custom actions.
MessagingCenter.Subscribe<Xam.Plugins.NepaliDatePicker.Dto.DateDetailDto>(this, "date_selected", OnDateSelected);
OnDateSelected is a callback function and can be used as
private void OnDateSelected(Xam.Plugins.NepaliDatePicker.Dto.DateDetailDto data)
{
// your logic
}
DateDetailDto is a class that has three properties viz. SelectedDate ,SelectedYear and SelectedMonth.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Rg.Plugins.Popup (>= 2.0.0.12)
- Unity (>= 5.11.10)
- Xamarin.Forms (>= 5.0.0.2012)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1. NepaliDatePicker now supports both english and nepali language
2. Performance Improvements