microdanax.blogg.se

Microsoft monthview control 2010
Microsoft monthview control 2010








The SelectedDate does not change.Ĭhanges the year of the DisplayDate to the first year of the decade. If SelectionMode is not set to SingleDate or None, extends the range of selected dates.Ĭhanges the SelectedDate to the first day of the current month.Ĭhanges the month of the DisplayDate to the first month of the year. Note that the SelectedDate does not change. Note that the SelectedDate does not change.Ĭhanges the year of the DisplayDate. Key CombinationĬhanges the SelectedDate property if the SelectionMode property is not set to None.Ĭhanges the month of the DisplayDate property. The following table summarizes keyboard navigation. The Calendar control provides basic navigation using either the mouse or keyboard. Note that if you set the Width and Height properties of a Calendar, the actual calendar does not change its size. Use a Viewbox or set the LayoutTransform property to a ScaleTransform. Specify whether the current date is highlighted. Use the DisplayDateStart and DisplayDateEnd properties. Specify the range of dates that the Calendar displays. Specify whether the user can select a date, a range of dates, or multiple ranges of dates. Set the DisplayMode property to Month, Year, or Decade. Have the Calendar display a month, an entire year, or a decade. The following table provides information about tasks that are typically associated with the Calendar. The Calendar supports only the Gregorian calendar. (calendarWithBlackoutDates)Ī Calendar control can be used on its own, or as a drop-down part of a DatePicker control. ' Januarand has dates that are not selectable.ĭim calendarWithBlackoutDates As New Calendar()ĬalendarWithBlackoutDates.IsTodayHighlighted = FalseĬalendarWithBlackoutDates.DisplayDate = New DateTime(2009, 1, 1)ĬalendarWithBlackoutDates.DisplayDateEnd = New DateTime(2009, 1, 31)ĬalendarWithBlackoutDates.SelectionMode = CalendarSelectionMode.MultipleRangeĬ(New CalendarDateRange(New DateTime(2009, 1, 2), New DateTime(2009, 1, 4)))Ĭ(New CalendarDateRange(New DateTime(2009, 1, 9)))Ĭ(New CalendarDateRange(New DateTime(2009, 1, 16)))Ĭ(New CalendarDateRange(New DateTime(2009, 1, 23), New DateTime(2009, 1, 25)))Ĭ(New CalendarDateRange(New DateTime(2009, 1, 30)))Ĭ(New DateTime(2009, 1, 5))Ĭ(New DateTime(2009, 1, 12), New DateTime(2009, 1, 15))Ĭ(New DateTime(2009, 1, 27)) ' Create a Calendar that displays dates through ' root is a Panel that is defined elswhere. (calendarWithBlackoutDates) īasicCalendar.DisplayDateStart = New DateTime(2009, 1, 10)īasicCalendar.DisplayDateEnd = New DateTime(2009, 4, 18)īasicCalendar.DisplayDate = New DateTime(2009, 3, 15)īasicCalendar.SelectedDate = New DateTime(2009, 2, 15) New CalendarDateRange(new DateTime(2009, 1, 16))) New CalendarDateRange(new DateTime(2009, 1, 9))) Add the dates that are not selectable.Ĭ( Januarand has dates that are not selectable.Ĭalendar calendarWithBlackoutDates = new Calendar() ĬalendarWithBlackoutDates.IsTodayHighlighted = false ĬalendarWithBlackoutDates.DisplayDate = new DateTime(2009, 1, 1) ĬalendarWithBlackoutDates.DisplayDateEnd = new DateTime(2009, 1, 31) ĬalendarWithBlackoutDates.SelectionMode = CalendarSelectionMode.MultipleRange Create a Calendar that displays dates through root is a Panel that is defined elswhere.

#Microsoft monthview control 2010 code#

The following code and XAML creates a page with two Calendar controls that is similar to the previous illustration.īasicCalendar.DisplayDateStart = new DateTime(2009, 1, 10) īasicCalendar.DisplayDateEnd = new DateTime(2009, 4, 18) īasicCalendar.DisplayDate = new DateTime(2009, 3, 15) īasicCalendar.SelectedDate = new DateTime(2009, 2, 15) The following illustration shows two Calendar controls, one with selections and blackout dates and one without.








Microsoft monthview control 2010