![]() The Michel Max - WPF Color Picker is a Control for color selection in WPF applications, with three layout options being 'Spherical', 'Rounded' or 'Squered'. The following code snippet sets the DisplayDate, DisplayDateStart and DisplayDateEnd attributes of the DatePicker element in XAML. Download Michel Max - WPF Color Picker for free. The DisplayDate property represents the current date to display. But now what if you want to display dates for month of March 2010 only? We can use the DisplayStartDate and DisplayEndDate properties to control the start and end dates of a month. If you see Figure 2 in the previous section, you may notice the March 2010 month DatePicker display starts with the Madate. The DatePicker control allows you to set the start and end display dates using the DisplayDateStart and DisplayDateEnd properties. ![]() The following code snippet adds backout dates to a DatePicker. For example, say in the month of March of the year 2010, we would like to block the dates from Jan 1st to Jan 7th and then all Sundays and the final DatePicker should look like Figure 2. All non-selection dates are marked by a cross. The BlackoutDates property of the DatePicker class represents a collection of dates that are not available for selection. If the multiple dates selection is true, the SelectedDates property represents a collection of currently selected dates. The SelectedDate property represents the currently selected date. The Text property represents the text that is displayed in the DatePicker. The IsDropDownOpen property indicates whether the calendar part of the DatePicker control is open or closed. The DisplayDate property represents the date to display. The selected date will be the date in the TextBox as you can see in Figure 1. When you run this code, you will see a TextBox with the text Select a date and when you click on this TextBox or the date, the Calendar dropdown will appear where you can select a date. The Name attribute represents the name of the control, that is a unique identifier of a control. The Content attribute represents the text of a DatePicker. The Width and Height attributes of the DatePicker element represent the width and the height of a DatePicker.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |