May 2010
Intermediate to advanced
1272 pages
61h 18m
English
DatePickerThe DatePicker control is also new in the .NET Framework 4.0 and shows a pop-up calendar where you can pick a date; the date is then bound to a text box placed near the control. The DatePicker is used in data-binding techniques (see Chapter 35). The following XAML code shows how you can implement a DatePicker; the selection, which is mapped by the SelectedDate property of type Date, is then bound to a second, external text box to demonstrate how the value can be consumed by other user controls:

Figure 32.5 shows how the DatePicker appears.
Figure 32.5 Implementing a DatePicker.
The DatePicker exposes an event called SelectedDateChanged ...
Read now
Unlock full access