May 2010
Intermediate to advanced
1272 pages
61h 18m
English
CalendarThe Calendar control is new in .NET 4 and shows a calendar where you can select a particular day in the specified month and year. The following XAML code defines a calendar with a custom border and a TextBox that contains the selected date to be assigned programmatically:

The SelectedDatesChanged event is raised when the user clicks a different date. The following is instead the event handler that gets the instance of the calendar and sends the selected date to the text box:

Figure 32.2 shows the result of our work.
Figure 32.2 Implementing ...
Read now
Unlock full access