ClassAppointmentItem
The Scheduler AppointmentItem wrapper.
Definition
Namespace:Telerik.WebAii.Controls.Xaml.Scheduler
Assembly:Telerik.WebAii.Controls.Xaml.dll
Syntax:
public class AppointmentItem : ListBoxItem, IAutomationPeer, IPeerConverter, IContentControl, IControl, IListBoxItem, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlContentControlListBoxItemAppointmentItem
Implements:
Inherited Members
Constructors
AppointmentItem()
Initializes a new instance of the AppointmentItem class.
Declaration
public AppointmentItem()
Properties
DeleteButton
Get the delete button of this appointment item.
EndTimeSlot
Get the TimeSlotItem this AppointmentItem ends (and doesn't start) with. Note, this property iterates through all the TimeSlots in the AppointmentsControl so it's a bit slow. Returns 'null' for the appointments falling in only one time slot, see the TimeSlotOwner property.
RecurrentMaskVisibility
Get the recurrent mask visibility value.
Declaration
public Visibility RecurrentMaskVisibility { get; }
Property Value
StartTimeSlot
Get the TimeSlotItem this AppointmentItem starts (and doesn't end) with. Note, this property iterates through all the TimeSlots in the AppointmentsControl so it's a bit slow. Returns 'null' for the appointments falling in only one time slot, see the TimeSlotOwner property.
Declaration
public TimeSlotItem StartTimeSlot { get; }
Property Value
Subject
Get the appointment subject.
TimeSlotLength
Get the length of the appointment item in time slots.
TimeSlotOwner
Get the TimeSlotItem this AppointmentItem falls (comepletely) in. Note, this property iterates through all the TimeSlots in the AppointmentsControl so it's a bit slow. Returns null for the appointments falling in two or more time slots, see the StartTimeSlot and EndTimeSlot properties.
Declaration
public TimeSlotItem TimeSlotOwner { get; }
Property Value
Methods
Delete()
Simulate user clicking on the appointment delete button.
Declaration
public void Delete()
DragToTimeSlot(FrameworkElement)
Drag the appointment item to the given time slot element.
Declaration
public void DragToTimeSlot(FrameworkElement timeSlot)
Parameters
timeSlot
The time slot element to drag to.
DragToTimeSlot(int)
Drag the appointment item to the time slot with the given index.
Declaration
public void DragToTimeSlot(int slotIndex)
Parameters
slotIndex
The index of the time slot to drag to.
DragToTimeSlotDay(int, int)
Drag the appointment item to the MonthView time slot with the given index and occurrence.
Declaration
public void DragToTimeSlotDay(int slotDay, int occurrence)
Parameters
slotDay
The time slot day value (e.g. '25' for the 25th of the month) to drag to.
occurrence
The occurrence, i.e. if the 29th is shown twice in this month (previous and current month) use '1' as index.
EndsWithDaySlot(int)
Get whether the appointment ends with the time slot and starts with a previous slot. Supposed to be used in MonthView only.
EndsWithDaySlot(int, int)
Get whether the appointment ends with the time slot and starts with a previous slot. Supposed to be used in MonthView only.
EndsWithSlotIndex(int)
Get whether the appointment item ends in the time slot with given index.
EndsWithSlotRectangle(FrameworkElement)
Get whether the appointment item starts within the rectangle of the given time slot.
Declaration
public bool EndsWithSlotRectangle(FrameworkElement timeSlot)
Parameters
timeSlot
The time slot to compare with.
Returns
Whether the appointment item starts within the rectangle of the given time slot.
FallsInDaySlot(int)
Get whether the appointment rectangle completely resides within the time slot with given day.
FallsInDaySlot(int, int)
Get whether the appointment rectangle completely resides within the given time slot. Supposed to be used in MonthView only.
Declaration
public bool FallsInDaySlot(int slotDay, int occurrence)
Parameters
slotDay
The day to check whether the appointment item falls within.
occurrence
The occurrence of that day in the month.
Returns
Whether the appointment rectangle completely resides within the given time slot.
FallsInSlotIndex(int)
Get whether the appointment rectangle completely resides within the time slot with given index.
FallsInSlotRectangle(FrameworkElement)
Checks whether the appointment item falls within the given time slot's rectangle.
Declaration
public bool FallsInSlotRectangle(FrameworkElement timeSlot)
Parameters
timeSlot
The time slot to compare with.
Returns
Whether the appointment item falls within the given time slot's rectangle.
ResizeFromEnd(int)
Resizes the appointment item from the end with the slots/steps as given in the argument.
Declaration
public void ResizeFromEnd(int slots)
Parameters
slots
The slots to resize from end with. Use negative value to resize to left and positive -- to right.
ResizeFromStart(int)
Resizes the appointment item from the start with the slots/steps as given in the argument.
Declaration
public void ResizeFromStart(int slots)
Parameters
slots
The slots to resize from start with. Use negative value to resize to left and positive -- to right.
StartsWithDaySlot(int)
Get whether the appointment starts with the time slot and continues on the next slot. Supposed to be used in MonthView only.
StartsWithDaySlot(int, int)
Get whether the appointment starts with the time slot and continues on the next slot. Supposed to be used in MonthView only.
StartsWithSlotIndex(int)
Get whether the appointment item starts in the time slot with given index.
StartsWithSlotRectangle(FrameworkElement)
Get whether the appointment item starts within the rectangle of the given time slot.
Declaration
public bool StartsWithSlotRectangle(FrameworkElement timeSlot)
Parameters
timeSlot
The time slot to compare with.
Returns
Whether the appointment item starts within the rectangle of the given time slot.