Class
AppointmentItem

The Scheduler AppointmentItem wrapper.

Definition

Namespace:Telerik.WebAii.Controls.Xaml.Scheduler

Assembly:Telerik.WebAii.Controls.Xaml.dll

Syntax:

cs-api-definition
public class AppointmentItem : ListBoxItem, IAutomationPeer, IPeerConverter, IContentControl, IControl, IListBoxItem, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlContentControlListBoxItemAppointmentItem

Implements: IAutomationPeerIContentControlIControlIFrameworkElementIListBoxItemIPeerConverterITargetElement

Inherited Members ListBoxItem.IsSelectedPropertyListBoxItem.GetRealType()ListBoxItem.IsSelectedContentControl.ContentPropertyContentControl.ContentControl.IsTabStopPropertyControl.TabIndexPropertyControl.TabNavigationPropertyControl.PaddingPropertyControl.HorizontalContentAlignmentPropertyControl.VerticalContentAlignmentPropertyControl.BackgroundPropertyControl.BorderBrushPropertyControl.BorderThicknessPropertyControl.FontSizePropertyControl.ForegroundPropertyControl.IsEnabledPropertyControl.FontFamilyPropertyControl.FontStretchPropertyControl.FontStylePropertyControl.FontWeightPropertyControl.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.AssignReference(AutomationReference)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

AppointmentItem()

Initializes a new instance of the AppointmentItem class.

Declaration

cs-api-definition
public AppointmentItem()

Properties

DeleteButton

Get the delete button of this appointment item.

Declaration

cs-api-definition
public Button DeleteButton { get; }

Property Value

Button

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.

Declaration

cs-api-definition
public TimeSlotItem EndTimeSlot { get; }

Property Value

TimeSlotItem

RecurrentMaskVisibility

Get the recurrent mask visibility value.

Declaration

cs-api-definition
public Visibility RecurrentMaskVisibility { get; }

Property Value

Visibility

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

cs-api-definition
public TimeSlotItem StartTimeSlot { get; }

Property Value

TimeSlotItem

Subject

Get the appointment subject.

Declaration

cs-api-definition
public string Subject { get; }

Property Value

string

TimeSlotLength

Get the length of the appointment item in time slots.

Declaration

cs-api-definition
public int TimeSlotLength { get; }

Property Value

int

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

cs-api-definition
public TimeSlotItem TimeSlotOwner { get; }

Property Value

TimeSlotItem

Methods

Delete()

Simulate user clicking on the appointment delete button.

Declaration

cs-api-definition
public void Delete()

DragToTimeSlot(FrameworkElement)

Drag the appointment item to the given time slot element.

Declaration

cs-api-definition
public void DragToTimeSlot(FrameworkElement timeSlot)

Parameters

timeSlot

FrameworkElement

The time slot element to drag to.

DragToTimeSlot(int)

Drag the appointment item to the time slot with the given index.

Declaration

cs-api-definition
public void DragToTimeSlot(int slotIndex)

Parameters

slotIndex

int

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

cs-api-definition
public void DragToTimeSlotDay(int slotDay, int occurrence)

Parameters

slotDay

int

The time slot day value (e.g. '25' for the 25th of the month) to drag to.

occurrence

int

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.

Declaration

cs-api-definition
public bool EndsWithDaySlot(int slotDay)

Parameters

slotDay

int

The day to check starting with.

Returns

bool

Whether the appointment ends with the time slot and starts with a previous slot.

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.

Declaration

cs-api-definition
public bool EndsWithDaySlot(int slotDay, int occurrence)

Parameters

slotDay

int

The day to check starting with.

occurrence

int

The occurence of that day in the month.

Returns

bool

Whether the appointment ends with the time slot and starts with a previous slot.

EndsWithSlotIndex(int)

Get whether the appointment item ends in the time slot with given index.

Declaration

cs-api-definition
public bool EndsWithSlotIndex(int slotIndex)

Parameters

slotIndex

int

The index of the time slot to compare with.

Returns

bool

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

cs-api-definition
public bool EndsWithSlotRectangle(FrameworkElement timeSlot)

Parameters

timeSlot

FrameworkElement

The time slot to compare with.

Returns

bool

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.

Declaration

cs-api-definition
public bool FallsInDaySlot(int slotDay)

Parameters

slotDay

int

The day to check whether the appointment item falls within.

Returns

bool

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

cs-api-definition
public bool FallsInDaySlot(int slotDay, int occurrence)

Parameters

slotDay

int

The day to check whether the appointment item falls within.

occurrence

int

The occurrence of that day in the month.

Returns

bool

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.

Declaration

cs-api-definition
public bool FallsInSlotIndex(int slotIndex)

Parameters

slotIndex

int

The day to check whether the appointment item falls within.

Returns

bool

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

cs-api-definition
public bool FallsInSlotRectangle(FrameworkElement timeSlot)

Parameters

timeSlot

FrameworkElement

The time slot to compare with.

Returns

bool

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

cs-api-definition
public void ResizeFromEnd(int slots)

Parameters

slots

int

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

cs-api-definition
public void ResizeFromStart(int slots)

Parameters

slots

int

The slots to resize from start with. Use negative value to resize to left and positive -- to right.

Select()

Selects the appointment.

Declaration

cs-api-definition
public void Select()

StartsWithDaySlot(int)

Get whether the appointment starts with the time slot and continues on the next slot. Supposed to be used in MonthView only.

Declaration

cs-api-definition
public bool StartsWithDaySlot(int slotDay)

Parameters

slotDay

int

The day to check starting with.

Returns

bool

Whether the appointment starts with the time slot and continues on the next slot.

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.

Declaration

cs-api-definition
public bool StartsWithDaySlot(int slotDay, int occurrence)

Parameters

slotDay

int

The day to check starting with.

occurrence

int

The occurence of that day in the month.

Returns

bool

Whether the appointment starts with the time slot and continues on the next slot.

StartsWithSlotIndex(int)

Get whether the appointment item starts in the time slot with given index.

Declaration

cs-api-definition
public bool StartsWithSlotIndex(int slotIndex)

Parameters

slotIndex

int

The index of the time slot to compare with.

Returns

bool

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

cs-api-definition
public bool StartsWithSlotRectangle(FrameworkElement timeSlot)

Parameters

timeSlot

FrameworkElement

The time slot to compare with.

Returns

bool

Whether the appointment item starts within the rectangle of the given time slot.