This section explains how to add the .NET MAUI Date Picker control. It covers only the basic features needed to get started with Syncfusion® Date Picker.
Make sure to add the namespace.
{% highlight MauiProgram.cs %} using Syncfusion.Maui.Core.Hosting; {% endhighlight %}
Register the Syncfusion core handler in your CreateMauiApp method of MauiProgram.cs file to use Syncfusion controls.
{% highlight MauiProgram.cs %} builder.ConfigureSyncfusionCore(); {% endhighlight %}
Add the following namespace in your XAML or C#.
{% tabs %} {% highlight xaml tabtitle="xaml" %} xmlns:picker="clr-namespace:Syncfusion.Maui.Picker;assembly=Syncfusion.Maui.Picker" {% endhighlight %} {% highlight c# tabtitle="C#" %} using Syncfusion.Maui.Picker; {% endhighlight %} {% endtabs %}
Create an instance of Date Picker and add it to your page.
{% tabs %} {% highlight xaml tabtitle="XAML" %} <picker:SfDatePicker /> {% endhighlight %} {% highlight c# tabtitle="C#" %} SfDatePicker picker = new SfDatePicker(); this.Content = picker; {% endhighlight %} {% endtabs %}
The following screenshot illustrates the result of the above code.
You can download the Picker Getting Started sample from GitHub
