microsoft / xaml-standard

XAML Standard : a set of principles that drive XAML dialect alignment
Other
805 stars 50 forks source link

Add DatePicker #169

Open insinfo opened 7 years ago

insinfo commented 7 years ago

A DatePicker control is used to create a visual DatePicker that let user to pick a date and fire an event on the selection of the date.

 <DatePicker HorizontalAlignment="Left"
                    Margin="10,10,0,0"
                    VerticalAlignment="Top"
                    SelectedDateChanged="DatePicker_SelectedDateChanged"/>

datepicker 3 datepicker 2

datepicker 1
GeraudFabien commented 7 years ago

It should have a step value (day, month, year) to set how much precise we wanted to be (and a default precision). Also we may want to customize it so having many Template would be great. But most of time we may just customise the color... Should have an endDate and startDate, and selectedDate (DateTime?)(Like WinfForm and WPF,...) with dataBinding and CommandParameter for cancel. Question could be: Should it be dependant of a date display control? I thinks it should be two different thinks even if WPF and other use only one control. You can have two control link with dataBinding

Some senario