ClassRadCalendar
The class represents the RadCalendar Silverlight control wrapper.
Definition
Namespace:Telerik.WebAii.Controls.Xaml.Wpf
Assembly:Telerik.WebAii.Controls.Xaml.Wpf.dll
Syntax:
public class RadCalendar : Control, IAutomationPeer, IPeerConverter, IRadCalendar, IControl, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementWpfTestElementControlRadCalendar
Implements:
Inherited Members
Constructors
RadCalendar()
Initializes a new instance of the RadCalendar class.
Declaration
public RadCalendar()
Properties
CalendarViewElements
Get the list of the current calendar views.
Declaration
public IList<ICalendarView> CalendarViewElements { get; }
Property Value
Implements
CanViewUp
Get whether the header button is enabled so that the user can click it and up the view: Months -> Years -> Decade -> Century.
DisplayMode
Get the current Calendar display mode -- Month, Year, Decade or Century.
Declaration
public CalendarDisplayMode DisplayMode { get; }
Property Value
Implements
HeaderButtonElement
Gets the header button used to change view up to year, decade, century.
Declaration
public IButton HeaderButtonElement { get; }
Property Value
Implements
MoveLeftButtonElement
Gets the navigate to left repeat button.
Declaration
public IRepeatButton MoveLeftButtonElement { get; }
Property Value
Implements
MoveRightButtonElement
Gets the navigate to right repeat button.
Declaration
public IRepeatButton MoveRightButtonElement { get; }
Property Value
Implements
SelectedDate
Get the latest calendar selected date.
SelectedDates
Get the list of calendar selected dates.
Declaration
public SelectedDatesCollection SelectedDates { get; }
Property Value
Implements
Methods
AssignReference(AutomationReference)
Assign the reference and perform your custom class initialization.
Declaration
public override void AssignReference(AutomationReference reference)
Parameters
reference
Overrides
Implements
ScrollLeft()
Simulates user clicking on the 'move left' repeat button.
Declaration
public void ScrollLeft()
Implements
ScrollRight()
Simulates user clicking on the 'move right' repeat button.
Declaration
public void ScrollRight()
Implements
SelectDay(int, string)
Selects the day from an month view with the given index.
SelectDay(int, string, int)
Selects the day from an month view with the given index.
SelectDay(string)
Selects the day from the month view. Useful in the default case of a single calendar view.
Declaration
public void SelectDay(string day)
Parameters
day
The day to be selected.
SelectDay(string, int)
Selects the day from the month view. Useful in the default case of a single calendar view.
SelectDayRange(int, string, string)
Simulates user dragging to select the days from the given range in the calendar month view with the given index.
Declaration
public void SelectDayRange(int monthViewIndex, string firstDay, string lastDay)
Parameters
monthViewIndex
The index of the month view to select from.
firstDay
The day to start selection from, uses the first occurence.
lastDay
The date to end select from, uses the first occurence.
SelectDayRange(string, string)
Simulates user dragging to select the days from the given range in the calendar month view.
SelectDecade(int, string)
Selects the decade from a decade view with the given index.
SelectDecade(string)
Selects the decade from the century view. Useful in the default case of a single calendar view.
Declaration
public void SelectDecade(string decade)
Parameters
decade
The decade to be selected.
SelectMonth(int, string)
Selects the month from an year view with the given index.
SelectMonth(string)
Selects the month from the year view. Useful in the default case of a single calendar view.
Declaration
public void SelectMonth(string month)
Parameters
month
The month to be selected.
SelectYear(int, string)
Selects the year from a decade view with the given index.
SelectYear(string)
Selects the year from the decade view. Useful in the default case of a single calendar view.
Declaration
public void SelectYear(string year)
Parameters
year
The year to be selected.
ViewUp()
Simulates user clicking on the calendar title to change the current view: Months -> Years -> Decades -> Centuries; refreshes the Calendar.
Declaration
public void ViewUp()
Implements