NPicker 3.0.3
dotnet add package NPicker --version 3.0.3
NuGet\Install-Package NPicker -Version 3.0.3
<PackageReference Include="NPicker" Version="3.0.3" />
<PackageVersion Include="NPicker" Version="3.0.3" />
<PackageReference Include="NPicker" />
paket add NPicker --version 3.0.3
#r "nuget: NPicker, 3.0.3"
#:package NPicker@3.0.3
#addin nuget:?package=NPicker&version=3.0.3
#tool nuget:?package=NPicker&version=3.0.3
NPicker
This is a collection of native picker controls for .NET MAUI that allows nullable values.
- It supports Windows, Android, iOS and MacOS
- Based on the original source code of .NET MAUI 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.
Get Started
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 Value="{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"> |
Release Notes
Version 3.0 intruduced a breaking change: The bindable property Date
was renamed to Value
to better align with other set of controls on the ecosystem.
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?
.
This library was created based on the original source code of .NET MAUI.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-android35.0 is compatible. net9.0-browser was computed. net9.0-ios was computed. net9.0-ios18.0 is compatible. net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 is compatible. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net9.0-windows10.0.19041 is compatible. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Microsoft.Maui.Controls (>= 9.0.10)
-
net9.0-android35.0
- Microsoft.Maui.Controls (>= 9.0.10)
-
net9.0-ios18.0
- Microsoft.Maui.Controls (>= 9.0.10)
-
net9.0-maccatalyst18.0
- Microsoft.Maui.Controls (>= 9.0.10)
-
net9.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 9.0.10)
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 | 155 | 7/9/2025 |
3.0.2 | 138 | 7/8/2025 |
3.0.1 | 133 | 7/8/2025 |
3.0.0 | 5,681 | 11/18/2024 |
2.0.5 | 732 | 10/13/2024 |
2.0.4 | 127 | 10/13/2024 |
2.0.2 | 116 | 10/13/2024 |
1.0.1 | 170 | 10/12/2024 |
0.1.18 | 111 | 10/12/2024 |
0.1.17 | 108 | 10/12/2024 |
0.1.16 | 106 | 10/12/2024 |
0.1.15 | 124 | 10/12/2024 |
0.1.7 | 118 | 10/12/2024 |
0.1.5 | 121 | 10/12/2024 |