6
votes

I'm currently developing a UWP app and I stumbled upon this in google, https://msdn.microsoft.com/en-us/windows/uwp/controls-and-patterns/calendar-date-picker

I'm currently using date picker in selecting dates but I thinks the calendar date picker is more suitable for this. I used date picker back then because I can't find calendar date picker in my toolbox and I believed it is not available for UWP. But referring to the link above, it should be available in my toolbox.

I really really want to use the calendar date picker.

4
What exactly do you want to do with Calendar Control? - GeralexGR

4 Answers

7
votes

It seems that you’re developing universal windows 8.1 app, not UWP app (windows 10). So you would not use “Calendar date picker” control in your project. If you want to use it, you would need to update your OS to windows 10, and install windows 10 SDK. More information, please refer to this document about “Get started with Windows apps” for details.

0
votes

Just use it in your xaml

<CalendarDatePicker />

Since you seem to have the documentation link, and there's no particular question I don't know what else to add.

0
votes

Note that CalendarDatePicker needs DateTime object to bind but simple DatePicker DateTimeOffset object to bind. If you want to create CalendarDatePicker without any default value you have to use nullable DateTime by

 DateTime? date {get;set;}= null;

at code behind and bind it with x:Bind.

On the other hand, i recommend to try use telerik controls. For me RadCallendar looks really great ;)

0
votes

If you are developing UWP there is Calendar Date Picker Control. Copy below code into your .xaml file:

<Grid>
    <CalendarDatePicker x:Name="myCalendar" Header="Select Date"/>
</Grid>