Class
AppointmentsControl

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:

cs-api-definition
public class AppointmentsControl : Control, IAutomationPeer, IPeerConverter, IControl, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlAppointmentsControl

Implements: IAutomationPeerIControlIFrameworkElementIPeerConverterITargetElement

Inherited Members Control.IsTabStopPropertyControl.TabIndexPropertyControl.TabNavigationPropertyControl.PaddingPropertyControl.HorizontalContentAlignmentPropertyControl.VerticalContentAlignmentPropertyControl.BackgroundPropertyControl.BorderBrushPropertyControl.BorderThicknessPropertyControl.FontSizePropertyControl.ForegroundPropertyControl.IsEnabledPropertyControl.FontFamilyPropertyControl.FontStretchPropertyControl.FontStylePropertyControl.FontWeightPropertyControl.GetRealType()Control.IsTabStopControl.TabIndexControl.TabNavigationControl.PaddingControl.HorizontalContentAlignmentControl.VerticalContentAlignmentControl.BackgroundControl.BorderBrushControl.BorderThicknessControl.FontSizeControl.ForegroundControl.IsEnabledControl.FontFamilyControl.FontStretchControl.FontStyleControl.FontWeightSilverlightTestElement.UseLayoutRoundingPropertySilverlightTestElement.UseLayoutRoundingFrameworkElement.ActualWidthPropertyFrameworkElement.ActualHeightPropertyFrameworkElement.WidthPropertyFrameworkElement.HeightPropertyFrameworkElement.MinWidthPropertyFrameworkElement.MaxWidthPropertyFrameworkElement.MinHeightPropertyFrameworkElement.MaxHeightPropertyFrameworkElement.HorizontalAlignmentPropertyFrameworkElement.VerticalAlignmentPropertyFrameworkElement.MarginPropertyFrameworkElement.DesiredSizePropertyFrameworkElement.RenderSizePropertyFrameworkElement.NamePropertyFrameworkElement.TagPropertyFrameworkElement.DataContextPropertyFrameworkElement.OpacityPropertyFrameworkElement.ClipPropertyFrameworkElement.RenderTransformPropertyFrameworkElement.OpacityMaskPropertyFrameworkElement.RenderTransformOriginPropertyFrameworkElement.IsHitTestVisiblePropertyFrameworkElement.VisibilityPropertyFrameworkElement.GetIdentifier(out string, out string)FrameworkElement.IsChild(FrameworkElement)FrameworkElement.GetChildTagIndex(FrameworkElement)FrameworkElement.InitializeMappings(MappingsCollection)FrameworkElement.As<T>()FrameworkElement.CastAs<T>()FrameworkElement.SetProxy(bool)FrameworkElement.SetUid(string)FrameworkElement.SetFindInfo(VisualFindInfo)FrameworkElement.SetXamlTag(string)FrameworkElement.KeyPress(Keys, int, int, int)FrameworkElement.GetRectangle()FrameworkElement.GetRectangle(FrameworkElement)FrameworkElement.GetIntRectangle()FrameworkElement.IsHitTest()FrameworkElement.IsHitTest(bool)FrameworkElement.IsHitTest(FrameworkElement, bool)FrameworkElement.Highlight()FrameworkElement.Highlight(bool)FrameworkElement.Parent()FrameworkElement.Parent<T>()FrameworkElement.Parent(string)FrameworkElement.Parent(string, bool)FrameworkElement.GetNextSibling()FrameworkElement.GetPrevSibling()FrameworkElement.NextSibling(string)FrameworkElement.NextSibling<T>()FrameworkElement.PreviousSibling(string)FrameworkElement.PreviousSibling<T>()FrameworkElement.AnySibling<T>()FrameworkElement.AnySibling(string)FrameworkElement.GetScreenRectangle()FrameworkElement.ScrollToVisible()FrameworkElement.ScrollToVisible(ScrollToVisibleType)FrameworkElement.EnsureClickable()FrameworkElement.ToXml()FrameworkElement.Refresh()FrameworkElement.Equals(object)FrameworkElement.GetHashCode()FrameworkElement.GetProperties()FrameworkElement.GetAttachedProperty<T>(string, string)FrameworkElement.SetAttachedProperty<T>(string, string, T)FrameworkElement.SetFocus()FrameworkElement.ValidateMouseLocationIfNeeded(Point)FrameworkElement.GetStringPresentation()FrameworkElement.ToRealObject()FrameworkElement.FromRealObject(object)FrameworkElement.ValidateType(Type, string)FrameworkElement.GetKnownControlTypes(TechnologyType)FrameworkElement.RegisterElement(Type, string)FrameworkElement.InitKnownWpfControlTypes()FrameworkElement.InitKnownSilverlightControlTypes()FrameworkElement.InitKnownXamlControlTypes(Type)FrameworkElement.GetControlTypeFromInterface(Type)FrameworkElement.Match(IFindExpression)FrameworkElement.SetDepth(int)FrameworkElement.AddChildNode(ITargetElement)FrameworkElement.SetClosingTag(ITargetElement)FrameworkElement.GetChildren()FrameworkElement.GetParent()FrameworkElement.GetHostParent()FrameworkElement.SetParent(ITargetElement)FrameworkElement.GetUniqueHashCode()FrameworkElement.ToString()FrameworkElement.Capture()FrameworkElement.CaptureImage()FrameworkElement.GetProperty<T>(string)FrameworkElement.GetPropertyTypeSafe(string)FrameworkElement.GetAutomationProperty(string)FrameworkElement.SetProperty(string, object)FrameworkElement.ActualWidthFrameworkElement.ActualHeightFrameworkElement.WidthFrameworkElement.HeightFrameworkElement.MinWidthFrameworkElement.MaxWidthFrameworkElement.MinHeightFrameworkElement.MaxHeightFrameworkElement.HorizontalAlignmentFrameworkElement.VerticalAlignmentFrameworkElement.MarginFrameworkElement.DesiredSizeFrameworkElement.RenderSizeFrameworkElement.NameFrameworkElement.OpacityFrameworkElement.ClipFrameworkElement.RenderTransformFrameworkElement.OpacityMaskFrameworkElement.RenderTransformOriginFrameworkElement.IsHitTestVisibleFrameworkElement.VisibilityFrameworkElement.UidFrameworkElement.MappingsFrameworkElement.AutomationIdFrameworkElement.XamlTagBaseFrameworkElement.TextFrameworkElement.TextBlockContentFrameworkElement.TextLiteralContentFrameworkElement.UserFrameworkElement.XamlTagFrameworkElement.WaitFrameworkElement.FindFrameworkElement.ApplicationFrameworkElement.AbsoluteTagIndexFrameworkElement.TagNameIndexFrameworkElement.AbsoluteSiblingTagIndexFrameworkElement.EnableValidateMouseLocationFrameworkElement.ToolTipTextFrameworkElement.ComputedVisibilityFrameworkElement.IsVisibleFrameworkElement.ChildrenFrameworkElement.TechnologyTypeFrameworkElement.DepthFrameworkElement.IsTestRegionFrameworkElement.ParsedElementFrameworkElement.HostAutomationObject<FrameworkElement>.GetProperty(AutomationProperty)AutomationObject<FrameworkElement>.GetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.SetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.InvokeMethod(AutomationMethod, params object[])AutomationObject<FrameworkElement>.InvokeMethod(string, params object[])AutomationObject<FrameworkElement>.Serialize()AutomationObject<FrameworkElement>.Deserialize(string)AutomationObject<FrameworkElement>.ReferenceAutomationObject<FrameworkElement>.PropertyBag

Constructors

AppointmentsControl()

Initializes a new instance of the AppointmentsControl class.

Declaration

cs-api-definition
public AppointmentsControl()

Properties

Appointments

Get the list of appointments.

Declaration

cs-api-definition
public IList<AppointmentItem> Appointments { get; }

Property Value

IList<AppointmentItem>

TimeSlots

Get the list of TimeSlots for the appointments control.

Declaration

cs-api-definition
public IList<TimeSlotItem> TimeSlots { get; }

Property Value

IList<TimeSlotItem>

Methods

AssignReference(AutomationReference)

Assign the reference and perform the custom class initialization.

Declaration

cs-api-definition
public override void AssignReference(AutomationReference reference)

Parameters

reference

AutomationReference

The automation reference.

Overrides FrameworkElement.AssignReference(AutomationReference)

DeleteAppointment(string)

Simulates the user deleting the first appointment with the given subject.

Declaration

cs-api-definition
public void DeleteAppointment(string appSubject)

Parameters

appSubject

string

DeleteAppointment(string, int)

Simulates user deleting the appointment with the given index. Refreshes the content internally.

Declaration

cs-api-definition
public void DeleteAppointment(string appSubject, int appIndex)

Parameters

appSubject

string

The subject of the deleted appointment.

appIndex

int

The index of the appointment to delete.

DeleteRecurringItem(string, int)

Simulates user deleting the recurring item with the given appointment Subject and index. Refreshes the content internally.

Declaration

cs-api-definition
public void DeleteRecurringItem(string appSubject, int appIndex)

Parameters

appSubject

string

The subject of the appointment to be deleted.

appIndex

int

The index of the recurring appointment to delete.

DeleteRecurringSeries(string, int)

Simulates user deleting the recurring series with the given appointment Subject and index. Refreshes the content internally.

Declaration

cs-api-definition
public void DeleteRecurringSeries(string appSubject, int appIndex)

Parameters

appSubject

string

The subject of the appointment to be deleted.

appIndex

int

The index of the recurring series appointment to delete.

DragAppointmentToTimeSlot(string, int, FrameworkElement)

Drags the appointment with the given Subject to the passed time slot element.

Declaration

cs-api-definition
public void DragAppointmentToTimeSlot(string appSubject, int appIndex, FrameworkElement timeSlot)

Parameters

appSubject

string

The subject of the dragged appointment.

appIndex

int

The index of the appointment to drag.

timeSlot

FrameworkElement

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.

Declaration

cs-api-definition
public void DragAppointmentToTimeSlot(string appSubject, int index, int slotIndex)

Parameters

appSubject

string

The subject of the dragged appointment.

index

int

The appointment index to drag.

slotIndex

int

The time slot index to drag into.

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

cs-api-definition
public void DragAppointmentToTimeSlotDay(string appSubject, int appIndex, int slotDay, int occurrence)

Parameters

appSubject

string

The subject of the dragged appointment.

appIndex

int

The appointment index to drag.

slotDay

int

The day value of the time slot to drag into.

occurrence

int

The day occurrence index.

GetAppointmentBySubject(string)

Get the first appointment item with specific subject.

Declaration

cs-api-definition
public AppointmentItem GetAppointmentBySubject(string subject)

Parameters

subject

string

The subject of the Appointment.

Returns

AppointmentItem

Returns the first appointment item with specific subject, or 'null' if nothing found.

GetAppointmentsBySubject(string)

Get the list of Appointments with specific subject.

Declaration

cs-api-definition
public IList<AppointmentItem> GetAppointmentsBySubject(string subject)

Parameters

subject

string

The subject of the Appointment.

Returns

IList<AppointmentItem>

Returns the collection of Appointments with specific subject.

GetAppointmentsBySubject(string, int)

Get the list of Appointments with specific subject.

Declaration

cs-api-definition
public IList<AppointmentItem> GetAppointmentsBySubject(string subject, int count)

Parameters

subject

string

The subject of the Appointment.

count

int

The list count.

Returns

IList<AppointmentItem>

Returns the first 'count' Appointments with specific subject.

GetDayTimeSlotItem(int)

Get the first occurrence of the time slot with the given day value.

Declaration

cs-api-definition
public TimeSlotItem GetDayTimeSlotItem(int day)

Parameters

day

int

The day value of the time slot item.

Returns

TimeSlotItem

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

cs-api-definition
public TimeSlotItem GetDayTimeSlotItem(int day, int occurrence)

Parameters

day

int

The day value to search for as displayed in the current.

occurrence

int

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

TimeSlotItem

The time slot item control for the given day and day occurrence.

Exceptions

ArgumentException

Thrown if the time slot with the given day value cannot be found.

ArgumentOutOfRangeException

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.

Declaration

cs-api-definition
public void OpenDay(int day, int occurrence)

Parameters

day

int

The day, e.g. '25' value displayed in the view.

occurrence

int

The occurrence index of that day, i.e. the end or start day values can be displayed more then once in the current view.

ResizeAppointmentFromEnd(string, int, int)

Resizes the appointment with the given Subject with the specified slots/steps. Refreshes the content internally.

Declaration

cs-api-definition
public void ResizeAppointmentFromEnd(string appSubject, int appIndex, int slots)

Parameters

appSubject

string

The subject of the resized appointment.

appIndex

int

The index of the appointment to resize.

slots

int

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

cs-api-definition
public void ResizeAppointmentFromStart(string appSubject, int appIndex, int slots)

Parameters

appSubject

string

The subject of the resized appointment.

appIndex

int

The index of the appointment to resize.

slots

int

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.

Declaration

cs-api-definition
public void SelectDay(int day, int occurrence)

Parameters

day

int

The day, e.g. '25' value displayed in the view.

occurrence

int

The occurrence index of that day, i.e. the end or start day values can be displayed more then once in the current view.