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
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="Xam.Plugins.NepaliDatePicker" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xam.Plugins.NepaliDatePicker --version 1.0.2
#r "nuget: Xam.Plugins.NepaliDatePicker, 1.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 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

  1. Import namespace in your xaml file

xmlns:CustomControls="clr-namespace:Xam.Plugins.NepaliDatePicker.CustomControls;assembly=Xam.Plugins.NepaliDatePicker"

  1. Use CustomControl wherever required

<CustomControls:NepaliDatePickerEntry DateFormat="mDy" Separator="/" CurrentDate="04/31/2078" />

  1. 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

  1. yMd
  2. dMy
  3. 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 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. 
.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. 
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
1.0.2 374 8/18/2021
1.0.1 276 8/16/2021
1.0.0 316 8/16/2021

1. NepaliDatePicker now supports both english and nepali language
2. Performance Improvements