NPicker 2.0.2
See the version list below for details.
dotnet add package NPicker --version 2.0.2
NuGet\Install-Package NPicker -Version 2.0.2
<PackageReference Include="NPicker" Version="2.0.2" />
<PackageVersion Include="NPicker" Version="2.0.2" />
<PackageReference Include="NPicker" />
paket add NPicker --version 2.0.2
#r "nuget: NPicker, 2.0.2"
#:package NPicker@2.0.2
#addin nuget:?package=NPicker&version=2.0.2
#tool nuget:?package=NPicker&version=2.0.2
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
Install it from nuget.org NPicker
Add the following namespace to your MauiProgram.cs:
using NPicker;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 | Versions 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. |
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
-
net8.0-ios18.0
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
-
net8.0-maccatalyst18.0
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
-
net8.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 8.0.82)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.82)
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 |