ClassAppointmentsControl
The AppointmentsControl serves as a holder for the TimeSlot and Appointment lists.
Definition
Namespace:Telerik.WebAii.Controls.Xaml.Scheduler
Assembly:Telerik.WebAii.Controls.Xaml.dll
Syntax:
public class AppointmentsControl : Control, IAutomationPeer, IPeerConverter, IControl, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlAppointmentsControl
Implements:
Inherited Members
Constructors
AppointmentsControl()
Initializes a new instance of the AppointmentsControl class.
Declaration
public AppointmentsControl()
Properties
Appointments
Get the list of appointments.
Declaration
public IList<AppointmentItem> Appointments { get; }
Property Value
TimeSlots
Get the list of TimeSlots for the appointments control.
Declaration
public IList<TimeSlotItem> TimeSlots { get; }
Property Value
Methods
AssignReference(AutomationReference)
Assign the reference and perform the custom class initialization.
Declaration
public override void AssignReference(AutomationReference reference)
Parameters
reference
The automation reference.
Overrides
DeleteAppointment(string)
Simulates the user deleting the first appointment with the given subject.
Declaration
public void DeleteAppointment(string appSubject)
Parameters
appSubject
DeleteAppointment(string, int)
Simulates user deleting the appointment with the given index. Refreshes the content internally.
DeleteRecurringItem(string, int)
Simulates user deleting the recurring item with the given appointment Subject and index. Refreshes the content internally.
DeleteRecurringSeries(string, int)
Simulates user deleting the recurring series with the given appointment Subject and index. Refreshes the content internally.
DragAppointmentToTimeSlot(string, int, FrameworkElement)
Drags the appointment with the given Subject to the passed time slot element.
Declaration
public void DragAppointmentToTimeSlot(string appSubject, int appIndex, FrameworkElement timeSlot)
Parameters
appSubject
The subject of the dragged appointment.
appIndex
The index of the appointment to drag.
timeSlot
The time slot element to drag into.
DragAppointmentToTimeSlot(string, int, int)
Drags the appointment with given Subject to the time slot with the given index. Refreshes the content internally.
DragAppointmentToTimeSlotDay(string, int, int, int)
Drags the appointment with given Subject to the time slot with the given index and occurence. Refreshes the content internally.
Declaration
public void DragAppointmentToTimeSlotDay(string appSubject, int appIndex, int slotDay, int occurrence)
Parameters
appSubject
The subject of the dragged appointment.
appIndex
The appointment index to drag.
slotDay
The day value of the time slot to drag into.
occurrence
The day occurrence index.
GetAppointmentBySubject(string)
Get the first appointment item with specific subject.
Declaration
public AppointmentItem GetAppointmentBySubject(string subject)
Parameters
subject
The subject of the Appointment.
Returns
Returns the first appointment item with specific subject, or 'null' if nothing found.
GetAppointmentsBySubject(string)
Get the list of Appointments with specific subject.
Declaration
public IList<AppointmentItem> GetAppointmentsBySubject(string subject)
Parameters
subject
The subject of the Appointment.
Returns
Returns the collection of Appointments with specific subject.
GetAppointmentsBySubject(string, int)
Get the list of Appointments with specific subject.
Declaration
public IList<AppointmentItem> GetAppointmentsBySubject(string subject, int count)
Parameters
subject
The subject of the Appointment.
count
The list count.
Returns
Returns the first 'count' Appointments with specific subject.
GetDayTimeSlotItem(int)
Get the first occurrence of the time slot with the given day value.
Declaration
public TimeSlotItem GetDayTimeSlotItem(int day)
Parameters
day
The day value of the time slot item.
Returns
The first occurrence of the time slot with the given day value.
GetDayTimeSlotItem(int, int)
Get the time slot item control for the given day and day occurrence.
Declaration
public TimeSlotItem GetDayTimeSlotItem(int day, int occurrence)
Parameters
day
The day value to search for as displayed in the current.
occurrence
The day value occurrence in the current view, e.g. '30' may appear twice because of previous month so use '1' as occurence index to get the one from the current view.
Returns
The time slot item control for the given day and day occurrence.
Exceptions
Thrown if the time slot with the given day value cannot be found.
Thrown if the occurrence index is out of the range of the time slot count with the given day value.
OpenDay(int, int)
Simulates user clicking on the specified day to open it.
ResizeAppointmentFromEnd(string, int, int)
Resizes the appointment with the given Subject with the specified slots/steps. Refreshes the content internally.
Declaration
public void ResizeAppointmentFromEnd(string appSubject, int appIndex, int slots)
Parameters
appSubject
The subject of the resized appointment.
appIndex
The index of the appointment to resize.
slots
The slots to resize with. Use negative value to resize to left and positive - to right.
ResizeAppointmentFromStart(string, int, int)
Resizes the appointment with the given Subject with the specified slots/steps. Refreshes the content internally.
Declaration
public void ResizeAppointmentFromStart(string appSubject, int appIndex, int slots)
Parameters
appSubject
The subject of the resized appointment.
appIndex
The index of the appointment to resize.
slots
The slots to resize with. Use negative value to resize to left and positive - to right.
SelectDay(int, int)
Simulates user selecting the specified day.