ClassCalendarPanel
The Calendar panel holding the CalendarButtons.
Definition
Namespace:Telerik.WebAii.Controls.Xaml.Wpf
Assembly:Telerik.WebAii.Controls.Xaml.Wpf.dll
Syntax:
public class CalendarPanel : RadUniformGrid, IAutomationPeer, IPeerConverter, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementWpfTestElementPanelRadUniformGridCalendarPanel
Implements:
Inherited Members
Constructors
CalendarPanel()
Initializes a new instance of the CalendarPanel class.
Declaration
public CalendarPanel()
Methods
ButtonClick(string, int)
Simulates user clicking on the calendar button in the view. Uses the button matching the given text depending on the given occurence.
ContainsButton(string)
Get whether the panel contains button with the given text.
GetButton(string)
Get the first occurence of the Calendar button matching the given text.
Declaration
public CalendarButton GetButton(string dateText)
Parameters
dateText
The text to search for.
Returns
The Calendar button matching the given text.
GetButton(string, int)
Get the Calendar button matching the given text.
Declaration
public CalendarButton GetButton(string buttonText, int occurrenceIndex)
Parameters
buttonText
The text to search for.
occurrenceIndex
The occurence index of the button when there are more than one matching the given text.
Returns
The Calendar button matching the given text.
Exceptions
Thrown when the button with given text is not available.
Thrown when the occurrence index is out of range of the available button count with the given text.
GetButtons(string)
Get the list of the calendar buttons matching the given text. Useful in month view where a day text may duplicates either in the previous/next month or with the week number.
Declaration
public IList<CalendarButton> GetButtons(string buttonText)
Parameters
buttonText
The button text to search for.
Returns
The list of the calendar buttons matching the given text.
SelectDayRange(string, int, string, int)
Simulates user dragging to select the dates from the given range.
Declaration
public void SelectDayRange(string firstDay, int firstDayOccurrence, string lastDay, int lastDayOccurrence)
Parameters
firstDay
The day to start selection from, uses the first occurence.
firstDayOccurrence
The occurence (index) of the 'firstDate' text.
lastDay
The day to end select from, uses the first occurence.
lastDayOccurrence
The occurence (index) of the 'lastDate' text.
SelectDayRange(string, string)
Simulates user dragging to select the dates from the given range.