Class
Calendar

Wraps a Silverlight Calendar element.

Definition

Namespace:ArtOfTest.WebAii.Silverlight.UI

Assembly:ArtOfTest.WebAii.dll

Syntax:

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

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlCalendar

Implements: IAutomationPeerICalendarIControlIFrameworkElementIPeerConverterITargetElement

Inherited Members Control.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

Calendar()

Declaration

cs-api-definition
public Calendar()

Fields

DisplayDateEndProperty

Declaration

cs-api-definition
public static AutomationProperty DisplayDateEndProperty

Field Value

AutomationProperty

DisplayDateProperty

Declaration

cs-api-definition
public static AutomationProperty DisplayDateProperty

Field Value

AutomationProperty

DisplayDateStartProperty

Declaration

cs-api-definition
public static AutomationProperty DisplayDateStartProperty

Field Value

AutomationProperty

DisplayModeProperty

Declaration

cs-api-definition
public static AutomationProperty DisplayModeProperty

Field Value

AutomationProperty

FirstDayOfWeekProperty

Declaration

cs-api-definition
public static AutomationProperty FirstDayOfWeekProperty

Field Value

AutomationProperty

IsTodayHighlightedProperty

Declaration

cs-api-definition
public static AutomationProperty IsTodayHighlightedProperty

Field Value

AutomationProperty

SelectedDateProperty

Declaration

cs-api-definition
public static AutomationProperty SelectedDateProperty

Field Value

AutomationProperty

SelectedDatesProperty

AutomationProperty object for selected dates property.

Declaration

cs-api-definition
public static AutomationProperty SelectedDatesProperty

Field Value

AutomationProperty

SelectionModeProperty

Declaration

cs-api-definition
public static AutomationProperty SelectionModeProperty

Field Value

AutomationProperty

Properties

DisplayDate

Declaration

cs-api-definition
public DateTime DisplayDate { get; set; }

Property Value

DateTime

DisplayDateEnd

Declaration

cs-api-definition
public DateTime? DisplayDateEnd { get; set; }

Property Value

DateTime?

DisplayDateStart

Declaration

cs-api-definition
public DateTime? DisplayDateStart { get; set; }

Property Value

DateTime?

DisplayMode

Declaration

cs-api-definition
public CalendarMode DisplayMode { get; set; }

Property Value

CalendarMode

FirstDayOfWeek

Declaration

cs-api-definition
public DayOfWeek FirstDayOfWeek { get; set; }

Property Value

DayOfWeek

HeaderButton

Get the calendar header button to zoom out. Override for custom control template.

Declaration

cs-api-definition
public virtual FrameworkElement HeaderButton { get; }

Property Value

FrameworkElement

Implements ICalendar.HeaderButton

IsTodayHighlighted

Declaration

cs-api-definition
public bool IsTodayHighlighted { get; set; }

Property Value

bool

MonthViewElement

Get the calendar month view element holding the days to select. Override for custom control template.

Declaration

cs-api-definition
public virtual FrameworkElement MonthViewElement { get; }

Property Value

FrameworkElement

Implements ICalendar.MonthViewElement

NextButton

Get the calendar navigation next button. Override for custom control template.

Declaration

cs-api-definition
public virtual FrameworkElement NextButton { get; }

Property Value

FrameworkElement

Implements ICalendar.NextButton

PreviousButton

Get the calendar navigation previous button. Override for custom control template.

Declaration

cs-api-definition
public virtual FrameworkElement PreviousButton { get; }

Property Value

FrameworkElement

Implements ICalendar.PreviousButton

SelectedDate

Get/set the Calendar SelectedDate.

Declaration

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

Property Value

DateTime?

Implements ICalendar.SelectedDate

SelectedDates

Get a collection of selected dates.

Declaration

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

Property Value

SelectedDatesCollection

Implements ICalendar.SelectedDates

SelectionMode

Declaration

cs-api-definition
public CalendarSelectionMode SelectionMode { get; set; }

Property Value

CalendarSelectionMode

YearViewElement

Get the calendar year view element holding the months and years to select. Override for custom control template.

Declaration

cs-api-definition
public virtual FrameworkElement YearViewElement { get; }

Property Value

FrameworkElement

Implements ICalendar.YearViewElement

Methods

GetRealType()

Gets the real object type. This property returns string.empty on FrameworkElement and all subclasses that inherit from it.

Declaration

cs-api-definition
public override string GetRealType()

Returns

string

Overrides Control.GetRealType()

Navigate(CalendarNavigationDirection)

Simulates calendar navigation.

Declaration

cs-api-definition
public void Navigate(CalendarNavigationDirection direction)

Parameters

direction

CalendarNavigationDirection

The calendar navigation direction.

Implements ICalendar.Navigate(CalendarNavigationDirection)

SelectDates(bool, List<DateTime>, bool)

Selects dates in the calendar.

Declaration

cs-api-definition
public void SelectDates(bool simulateRealUser, List<DateTime> dates, bool isInDatePicker)

Parameters

simulateRealUser

bool

Whether to simulate real user clicking on the day elements.

dates

List<DateTime>

The calendar dates to select.

isInDatePicker

bool

Whether to update the parent date picker if any too.

Implements ICalendar.SelectDates(bool, List<DateTime>, bool)

Remarks

In simulate real user and date picker mode a single date selection is possible only.

SelectMonth(int)

Simulates user selecting the specified month.

Declaration

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

Parameters

month

int

The month to select.

Implements ICalendar.SelectMonth(int)

SelectYear(int)

Simulates user selecting the specified year.

Declaration

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

Parameters

year

int

The year to select.

Implements ICalendar.SelectYear(int)

ZoomOut()

Simulates the user zooming the calendar out via a header button click.

Declaration

cs-api-definition
public void ZoomOut()

Implements ICalendar.ZoomOut()