ClassCalendar
Wraps a Calendar element.
Definition
Namespace:ArtOfTest.WebAii.Controls.Xaml.Wpf
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class Calendar : Control, IAutomationPeer, IPeerConverter, IControl, ICalendar, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementWpfTestElementControlCalendar
Implements:
Inherited Members
Constructors
Calendar()
Declaration
public Calendar()
Fields
DisplayDateEndProperty
Declaration
public static AutomationProperty DisplayDateEndProperty
Field Value
DisplayDateProperty
Declaration
public static AutomationProperty DisplayDateProperty
Field Value
DisplayDateStartProperty
Declaration
public static AutomationProperty DisplayDateStartProperty
Field Value
DisplayModeProperty
Declaration
public static AutomationProperty DisplayModeProperty
Field Value
FirstDayOfWeekProperty
Declaration
public static AutomationProperty FirstDayOfWeekProperty
Field Value
IsTodayHighlightedProperty
Declaration
public static AutomationProperty IsTodayHighlightedProperty
Field Value
SelectedDateProperty
Declaration
public static AutomationProperty SelectedDateProperty
Field Value
SelectedDatesProperty
Object for accessing selected dates.
Declaration
public static AutomationProperty SelectedDatesProperty
Field Value
SelectionModeProperty
Declaration
public static AutomationProperty SelectionModeProperty
Field Value
Properties
DisplayDateEnd
Declaration
public DateTime? DisplayDateEnd { get; set; }
Property Value
DisplayDateStart
Declaration
public DateTime? DisplayDateStart { get; set; }
Property Value
DisplayMode
Declaration
public CalendarMode DisplayMode { get; set; }
Property Value
FirstDayOfWeek
Declaration
public DayOfWeek FirstDayOfWeek { get; set; }
Property Value
HeaderButton
Get the calendar header button to zoom out. Override for custom control template.
Declaration
public virtual FrameworkElement HeaderButton { get; }
Property Value
Implements
MonthViewElement
Get the calendar month view element holding the days to select. Override for custom control template.
Declaration
public virtual FrameworkElement MonthViewElement { get; }
Property Value
Implements
NextButton
Get the calendar navigation next button. Override for custom control template.
Declaration
public virtual FrameworkElement NextButton { get; }
Property Value
Implements
PreviousButton
Get the calendar navigation previous button. Override for custom control template.
Declaration
public virtual FrameworkElement PreviousButton { get; }
Property Value
Implements
SelectedDate
Get/set the Calendar SelectedDate.
Declaration
public DateTime? SelectedDate { get; set; }
Property Value
Implements
SelectedDates
Gets selected dates.
Declaration
public SelectedDatesCollection SelectedDates { get; }
Property Value
Implements
SelectionMode
Declaration
public CalendarSelectionMode SelectionMode { get; set; }
Property Value
YearViewElement
Get the calendar year view element holding the months and years to select. Override for custom control template.
Declaration
public virtual FrameworkElement YearViewElement { get; }
Property Value
Implements
Methods
GetRealType()
Gets the real object type. This property returns string.empty on FrameworkElement and all subclasses that inherit from it.
Navigate(CalendarNavigationDirection)
Simulates calendar navigation.
Declaration
public void Navigate(CalendarNavigationDirection direction)
Parameters
direction
The calendar navigation direction.
Implements
SelectDates(bool, List<DateTime>, bool)
Selects dates in the calendar.
Declaration
public void SelectDates(bool simulateRealUser, List<DateTime> dates, bool isInDatePicker)
Parameters
simulateRealUser
Whether to simulate real user clicking on the day elements.
dates
The calendar dates to select.
isInDatePicker
Whether to update the parent date picker if any too.
Implements
Remarks
In simulate real user and date picker mode a single date selection is possible only.
SelectMonth(int)
Simulates user selecting the specified month.
Declaration
public void SelectMonth(int month)
Parameters
month
The month to select.
Implements
SelectYear(int)
Simulates user selecting the specified year.
Declaration
public void SelectYear(int year)
Parameters
year
The year to select.
Implements
ZoomOut()
Simulates the user zooming the calendar out via a header button click.
Declaration
public void ZoomOut()
Implements