Class
RadCalendar

The class represents the RadCalendar Silverlight control wrapper.

Definition

Namespace:Telerik.WebAii.Controls.Xaml.Wpf

Assembly:Telerik.WebAii.Controls.Xaml.Wpf.dll

Syntax:

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

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementWpfTestElementControlRadCalendar

Implements: IAutomationPeerIControlIFrameworkElementIPeerConverterIRadCalendarITargetElement

Inherited Members Control.BorderBrushPropertyControl.BorderThicknessPropertyControl.BackgroundPropertyControl.ForegroundPropertyControl.FontSizePropertyControl.HorizontalContentAlignmentPropertyControl.VerticalContentAlignmentPropertyControl.TabIndexPropertyControl.IsTabStopPropertyControl.PaddingPropertyControl.FontFamilyPropertyControl.FontStretchPropertyControl.FontStylePropertyControl.FontWeightPropertyControl.GetRealType()Control.BorderBrushControl.BorderThicknessControl.BackgroundControl.ForegroundControl.FontSizeControl.HorizontalContentAlignmentControl.VerticalContentAlignmentControl.TabIndexControl.IsTabStopControl.PaddingControl.FontFamilyControl.FontStretchControl.FontStyleControl.FontWeightWpfTestElement.OverridesDefaultStylePropertyWpfTestElement.BindingGroupPropertyWpfTestElement.InputScopePropertyWpfTestElement.LayoutTransformPropertyWpfTestElement.FlowDirectionPropertyWpfTestElement.ForceCursorPropertyWpfTestElement.ContextMenuPropertyWpfTestElement.IsMouseDirectlyOverPropertyWpfTestElement.IsMouseOverPropertyWpfTestElement.IsStylusOverPropertyWpfTestElement.IsKeyboardFocusWithinPropertyWpfTestElement.IsMouseCapturedPropertyWpfTestElement.IsMouseCaptureWithinPropertyWpfTestElement.IsStylusDirectlyOverPropertyWpfTestElement.IsStylusCapturedPropertyWpfTestElement.IsStylusCaptureWithinPropertyWpfTestElement.IsKeyboardFocusedPropertyWpfTestElement.AllowDropPropertyWpfTestElement.ClipToBoundsPropertyWpfTestElement.SnapsToDevicePixelsPropertyWpfTestElement.IsFocusedPropertyWpfTestElement.IsEnabledPropertyWpfTestElement.IsVisiblePropertyWpfTestElement.FocusablePropertyWpfTestElement.OverridesDefaultStyleWpfTestElement.BindingGroupWpfTestElement.InputScopeWpfTestElement.FlowDirectionWpfTestElement.ForceCursorWpfTestElement.ContextMenuWpfTestElement.IsMouseDirectlyOverWpfTestElement.IsMouseOverWpfTestElement.IsStylusOverWpfTestElement.IsKeyboardFocusWithinWpfTestElement.IsMouseCapturedWpfTestElement.IsMouseCaptureWithinWpfTestElement.IsStylusDirectlyOverWpfTestElement.IsStylusCapturedWpfTestElement.IsStylusCaptureWithinWpfTestElement.IsKeyboardFocusedWpfTestElement.AllowDropWpfTestElement.ClipToBoundsWpfTestElement.SnapsToDevicePixelsWpfTestElement.IsFocusedWpfTestElement.IsEnabledWpfTestElement.IsVisibleWpfTestElement.FocusableWpfTestElement.ComputedVisibilityFrameworkElement.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.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

RadCalendar()

Initializes a new instance of the RadCalendar class.

Declaration

cs-api-definition
public RadCalendar()

Properties

CalendarViewElements

Get the list of the current calendar views.

Declaration

cs-api-definition
public IList<ICalendarView> CalendarViewElements { get; }

Property Value

IList<ICalendarView>

Implements IRadCalendar.CalendarViewElements

CanViewUp

Get whether the header button is enabled so that the user can click it and up the view: Months -> Years -> Decade -> Century.

Declaration

cs-api-definition
public bool CanViewUp { get; }

Property Value

bool

DisplayMode

Get the current Calendar display mode -- Month, Year, Decade or Century.

Declaration

cs-api-definition
public CalendarDisplayMode DisplayMode { get; }

Property Value

CalendarDisplayMode

Implements IRadCalendar.DisplayMode

HeaderButtonElement

Gets the header button used to change view up to year, decade, century.

Declaration

cs-api-definition
public IButton HeaderButtonElement { get; }

Property Value

IButton

Implements IRadCalendar.HeaderButtonElement

MoveLeftButtonElement

Gets the navigate to left repeat button.

Declaration

cs-api-definition
public IRepeatButton MoveLeftButtonElement { get; }

Property Value

IRepeatButton

Implements IRadCalendar.MoveLeftButtonElement

MoveRightButtonElement

Gets the navigate to right repeat button.

Declaration

cs-api-definition
public IRepeatButton MoveRightButtonElement { get; }

Property Value

IRepeatButton

Implements IRadCalendar.MoveRightButtonElement

SelectedDate

Get the latest calendar selected date.

Declaration

cs-api-definition
public DateTime? SelectedDate { get; }

Property Value

DateTime?

SelectedDates

Get the list of calendar selected dates.

Declaration

cs-api-definition
public SelectedDatesCollection SelectedDates { get; }

Property Value

SelectedDatesCollection

Implements IRadCalendar.SelectedDates

Title

Gets the title of the calendar.

Declaration

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

Property Value

string

Implements IRadCalendar.Title

Methods

AssignReference(AutomationReference)

Assign the reference and perform your custom class initialization.

Declaration

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

Parameters

reference

AutomationReference

Overrides FrameworkElement.AssignReference(AutomationReference)

Implements IFrameworkElement.AssignReference(AutomationReference)

ScrollLeft()

Simulates user clicking on the 'move left' repeat button.

Declaration

cs-api-definition
public void ScrollLeft()

Implements IRadCalendar.ScrollLeft()

ScrollRight()

Simulates user clicking on the 'move right' repeat button.

Declaration

cs-api-definition
public void ScrollRight()

Implements IRadCalendar.ScrollRight()

SelectDay(int, string)

Selects the day from an month view with the given index.

Declaration

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

Parameters

monthViewIndex

int

The month view index to select the day from.

day

string

The day to be selected.

SelectDay(int, string, int)

Selects the day from an month view with the given index.

Declaration

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

Parameters

monthViewIndex

int

The month view index to select the day from.

day

string

The day to be selected.

occurrence

int

The occurence of the day.

SelectDay(string)

Selects the day from the month view. Useful in the default case of a single calendar view.

Declaration

cs-api-definition
public void SelectDay(string day)

Parameters

day

string

The day to be selected.

SelectDay(string, int)

Selects the day from the month view. Useful in the default case of a single calendar view.

Declaration

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

Parameters

day

string

The day to be selected.

occurrence

int

The occurence of the day.

SelectDayRange(int, string, string)

Simulates user dragging to select the days from the given range in the calendar month view with the given index.

Declaration

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

Parameters

monthViewIndex

int

The index of the month view to select from.

firstDay

string

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

lastDay

string

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

SelectDayRange(string, string)

Simulates user dragging to select the days from the given range in the calendar month view.

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 date to end select from, uses the first occurence.

SelectDecade(int, string)

Selects the decade from a decade view with the given index.

Declaration

cs-api-definition
public void SelectDecade(int centuryViewIndex, string decade)

Parameters

centuryViewIndex

int

The century view index to select the decade from.

decade

string

The decade to be selected.

SelectDecade(string)

Selects the decade from the century view. Useful in the default case of a single calendar view.

Declaration

cs-api-definition
public void SelectDecade(string decade)

Parameters

decade

string

The decade to be selected.

SelectMonth(int, string)

Selects the month from an year view with the given index.

Declaration

cs-api-definition
public void SelectMonth(int yearViewIndex, string month)

Parameters

yearViewIndex

int

The year view index to select the month from.

month

string

The month to be selected.

SelectMonth(string)

Selects the month from the year view. Useful in the default case of a single calendar view.

Declaration

cs-api-definition
public void SelectMonth(string month)

Parameters

month

string

The month to be selected.

SelectYear(int, string)

Selects the year from a decade view with the given index.

Declaration

cs-api-definition
public void SelectYear(int decadeViewIndex, string year)

Parameters

decadeViewIndex

int

The decade view index to select the year from.

year

string

The year to be selected.

SelectYear(string)

Selects the year from the decade view. Useful in the default case of a single calendar view.

Declaration

cs-api-definition
public void SelectYear(string year)

Parameters

year

string

The year to be selected.

ViewUp()

Simulates user clicking on the calendar title to change the current view: Months -> Years -> Decades -> Centuries; refreshes the Calendar.

Declaration

cs-api-definition
public void ViewUp()

Implements IRadCalendar.ViewUp()