Class
CalendarPanel

The Calendar panel holding the CalendarButtons.

Definition

Namespace:Telerik.WebAii.Controls.Xaml

Assembly:Telerik.WebAii.Controls.Xaml.dll

Syntax:

cs-api-definition
public class CalendarPanel : RadUniformGrid, IAutomationPeer, IPeerConverter, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementPanelRadUniformGridCalendarPanel

Implements: IAutomationPeerIFrameworkElementIPeerConverterITargetElement

Inherited Members RadUniformGrid.ColumnsRadUniformGrid.RowsRadUniformGrid.FirstColumnPanel.BackgroundPropertyPanel.IsItemsHostPropertyPanel.GetRealType()Panel.BackgroundPanel.IsItemsHostSilverlightTestElement.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

CalendarPanel()

Initializes a new instance of the CalendarPanel class.

Declaration

cs-api-definition
public CalendarPanel()

Methods

ButtonClick(string, int)

Simulates user clicking on the calendar button in the view. Uses the button matching the given text depending on the given occurence.

Declaration

cs-api-definition
public void ButtonClick(string buttonText, int occurrence)

Parameters

buttonText

string

The button text to search for.

occurrence

int

The occurence index of the button with this text.

ContainsButton(string)

Get whether the panel contains button with the given text.

Declaration

cs-api-definition
public bool ContainsButton(string buttonText)

Parameters

buttonText

string

The text to search for.

Returns

bool

Whether the panel contains button with the given text.

GetButton(string)

Get the first occurence of the Calendar button matching the given text.

Declaration

cs-api-definition
public CalendarButton GetButton(string dateText)

Parameters

dateText

string

The text to search for.

Returns

CalendarButton

The Calendar button matching the given text.

GetButton(string, int)

Get the Calendar button matching the given text.

Declaration

cs-api-definition
public CalendarButton GetButton(string buttonText, int occurrenceIndex)

Parameters

buttonText

string

The text to search for.

occurrenceIndex

int

The occurence index of the button when there are more than one matching the given text.

Returns

CalendarButton

The Calendar button matching the given text.

Exceptions

ArgumentException

Thrown when the button with given text is not available.

ArgumentOutOfRangeException

Thrown when the occurrence index is out of range of the available button count with the given text.

GetButtons(string)

Get the list of the calendar buttons matching the given text. Useful in month view where a day text may duplicates either in the previous/next month or with the week number.

Declaration

cs-api-definition
public IList<CalendarButton> GetButtons(string buttonText)

Parameters

buttonText

string

The button text to search for.

Returns

IList<CalendarButton>

The list of the calendar buttons matching the given text.

SelectDayRange(string, int, string, int)

Simulates user dragging to select the dates from the given range.

Declaration

cs-api-definition
public void SelectDayRange(string firstDay, int firstDayOccurrence, string lastDay, int lastDayOccurrence)

Parameters

firstDay

string

The day to start selection from, uses the first occurence.

firstDayOccurrence

int

The occurence (index) of the 'firstDate' text.

lastDay

string

The day to end select from, uses the first occurence.

lastDayOccurrence

int

The occurence (index) of the 'lastDate' text.

SelectDayRange(string, string)

Simulates user dragging to select the dates from the given range.

Declaration

cs-api-definition
public void SelectDayRange(string firstDay, string lastDay)

Parameters

firstDay

string

The day to start selection from, uses the first occurence.

lastDay

string

The day to end select from, uses the first occurence.