Class Calendar
A WPF date calendar for month, years and decades.
Inheritance
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class Calendar : Calendar, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Examples
This example illustrates how to use the Calendar control to display a calendar with a selected date set by default.
<SAF:Calendar SelectedDate="11.30.2015" />
This example illustrates how to use the Calendar control with a specified range of dates.
<SAF:Calendar DisplayDateStart="10.30.2015" DisplayDateEnd="11.30.2015" />
This example illustrates how to use the Calendar control with a specified DisplayMode. At startup, the calendar will display a decade.
<SAF:Calendar DisplayMode="Decade" />
This example illustrates how to use the Calendar control with a specified MinCalendarMode. With the value 'Year' only months will be displayed, not days in a month. With the value 'Decade' only years will be displayed, not months in a year.
<SAF:Calendar MinCalendarMode="Year" />
Constructors
View SourceCalendar()
Default consturctor for creating a new instance of calendar.
Declaration
public Calendar()
Fields
View SourceMinCalendarModeProperty
The DependencyProperty of the MinCalendarMode property.
Declaration
public static readonly DependencyProperty MinCalendarModeProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceMinCalendarMode
Returns or sets an enumeration that indicates the minimum calendar item type (month, year or decade) that can be selected within the control.
Declaration
public CalendarMode MinCalendarMode { get; set; }
Property Value
| Type | Description |
|---|---|
| CalendarMode |
Methods
View SourceOnDisplayDateChanged(CalendarDateChangedEventArgs)
Raises the DisplayDateChanged event.
Declaration
protected override void OnDisplayDateChanged(CalendarDateChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| CalendarDateChangedEventArgs | e | The data for the event. |
Overrides
View SourceOnDisplayModeChanged(CalendarModeChangedEventArgs)
Raises the DisplayModeChanged event.
Declaration
protected override void OnDisplayModeChanged(CalendarModeChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| CalendarModeChangedEventArgs | e | The data for the event. |
Overrides
View SourceOnSelectedDatesChanged(SelectionChangedEventArgs)
Raises the SelectedDatesChanged routed event.
Declaration
protected override void OnSelectedDatesChanged(SelectionChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectionChangedEventArgs | e | The data for the event. |