Xam.Netina.DatePicker.Forms 1.0.0.3

dotnet add package Xam.Netina.DatePicker.Forms --version 1.0.0.3                
NuGet\Install-Package Xam.Netina.DatePicker.Forms -Version 1.0.0.3                
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.Netina.DatePicker.Forms" Version="1.0.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xam.Netina.DatePicker.Forms --version 1.0.0.3                
#r "nuget: Xam.Netina.DatePicker.Forms, 1.0.0.3"                
#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.Netina.DatePicker.Forms as a Cake Addin
#addin nuget:?package=Xam.Netina.DatePicker.Forms&version=1.0.0.3

// Install Xam.Netina.DatePicker.Forms as a Cake Tool
#tool nuget:?package=Xam.Netina.DatePicker.Forms&version=1.0.0.3                

Netina.PersianDatePicker

Persian DatePicker (Shamsi Calender) for .NET ( Xamarin.Forms , .NET MAUI , WPF , ... )

Setup

Install-Package Xam.Netina.PersianDatePicker

Add Init to platforms

You have to add Init() method to each platform you used iOS

[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
    public override bool FinishedLaunching(UIApplication app, NSDictionary options)
    {
      Xam.Netina.DatePicker.Forms.Platforms.Droid.Platform.Init(this);
      
      global::Xamarin.Forms.Forms.Init ();
      LoadApplication (new App ());
      return base.FinishedLaunching (app, options);
    }
}

Android

namespace NetinaTest.XamarinForms.Droid
{
    [Activity(Label = "NetinaTest.XamarinForms", MainLauncher = true , 
    ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
    public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            Xam.Netina.DatePicker.Forms.Platforms.Droid.Platform.Init(this);
            
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
    }
}

Usage

For using package you can use NetinaDatePickerCross.Current static class or NetinaDatePicker view for your customize popups or pages

NetinaDatePickerCross.Current
private async void OpenDatePickerPopup()
{
    await NetinaDatePickerCross.Current.PushDatePickerPopup((ee) => { DisplayAlert("DateTime Selected", ee.ToString(), "Close"); });
}

PushDatePickerPopup method get an Action , Action will fire when user select and submit a date time.

when PushDatePickerPopup method , show date picker popup with Rg.Popup

Support platforms

  • Android (monoandroid10.0)
  • iOS
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.  monoandroid10.0 is compatible. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed.  xamarinios10 is compatible. 
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.0.3 337 2/25/2023
1.0.0.2 235 2/24/2023