Getting Started with UWP DateTimePicker (SfDateTimeCombo)

25 May 20211 minute to read

This section explains how to create SfDateTimeCombo control

Add SfDateTimeCombo to an application

Create a Universal Windows Platform project in Visual Studio and refer to the following assemblies.

  • Syncfusion.SfInput.UWP

  • Syncfusion.SfShared.UWP

1.Include the namespace for Syncfusion.SfInput.UWP assembly in MainPage.xaml

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns:syncfusion="using:Syncfusion.UI.Xaml.Controls.Input">

2.Now add the SfDateTimeCombo control with a required optimal name using the included namespace

<syncfusion:SfDateTimeCombo x:Name="datetimeCombo" FormatString="Mdy"  Width="430"  HorizontalAlignment="Left"/>
SfDateTimeCombo datetimeCombo = new SfDateTimeCombo() { FormatString = "Mdy", Width = 430, HorizontalAlignment = HorizontalAlignment.Left };
Dim datetimeCombo As New SfDateTimeCombo() With {
	.FormatString = "Mdy",
	.Width = 430,
	.HorizontalAlignment = HorizontalAlignment.Left
}