NPicker 2.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package NPicker --version 2.0.2
                    
NuGet\Install-Package NPicker -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="NPicker" Version="2.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NPicker" Version="2.0.2" />
                    
Directory.Packages.props
<PackageReference Include="NPicker" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NPicker --version 2.0.2
                    
#r "nuget: NPicker, 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.
#:package NPicker@2.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NPicker&version=2.0.2
                    
Install as a Cake Addin
#tool nuget:?package=NPicker&version=2.0.2
                    
Install as a Cake Tool

NPicker

This is a .NET MAUI collection of picker controls that allows nullable values.

  • It supports Windows, Android, iOS and MacOS
  • Based on the source code of .NET MAUI original source code so it renders directly to native platforms the same way as the built-in controls found on .NET MAUI, but better cause it supports nullable values.

Release Notes

Version 2.0 intruduced a breaking change: The Date's bindable property is now of type DateOnly? rather then DateTime? so please, make sure to change your VM's property to DateOnly?.

Get Started

  1. Install it from nuget.org NPicker

  2. Add the following namespace to your MauiProgram.cs:
    using NPicker;

  3. Call .UseNPicker() on your AppBuilder as described bellow.

public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
            
        builder.UseMauiApp<App>()
               .UseNPicker();

        return builder.Build();
    }
}

Add the followin xmlns to the XAML pages where you wanna use it xmlns:NPicker="clr-namespace:NPicker;assembly=NPicker"

Then add a reference to NPicker:DatePicker/ to your view and use it just like you've been using before. With the difference that, now you can set null to it's Date property.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="NPicker.Samples.MainPage"
             xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:NPicker="clr-namespace:NPicker;assembly=NPicker">

    <NPicker:DatePicker Date="{Binding MyDate}" Format="dd/MM/yyyy"/>

</ContentPage>
Android iOS Windows
<img src="Docs/Android.gif" alt="Android demo.gif"> <video width="300px" src="https://github.com/user-attachments/assets/224ed475-d357-48de-9b54-8ad0a91fc299" alt="iOS demo"> <video src="https://private-user-images.githubusercontent.com/12549812/375948554-987dd0cd-8eb5-49d4-9936-5d123974cafb.mp4" alt="Windows.gif">

This library was created based on the original source code of .NET MAUI.

Product Compatible and additional computed target framework versions.
.NET net8.0-android34.0 is compatible.  net8.0-ios18.0 is compatible.  net8.0-maccatalyst18.0 is compatible.  net8.0-windows10.0.19041 is compatible.  net9.0-android was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-windows was computed.  net10.0-android was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-windows 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
3.0.3 1,096 7/9/2025
3.0.2 214 7/8/2025
3.0.1 197 7/8/2025
3.0.0 6,154 11/18/2024
2.0.5 1,425 10/13/2024
2.0.4 177 10/13/2024
2.0.2 170 10/13/2024
1.0.1 254 10/12/2024
0.1.18 154 10/12/2024
0.1.17 163 10/12/2024
0.1.16 162 10/12/2024
0.1.15 194 10/12/2024
0.1.7 180 10/12/2024
0.1.5 177 10/12/2024