ClassDatePicker
Wraps a DatePicker object.
Definition
Namespace:ArtOfTest.WebAii.Silverlight.UI
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class DatePicker : Control, IAutomationPeer, IPeerConverter, IControl, IDatePicker, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlDatePicker
Implements:
Inherited Members
Constructors
DatePicker()
Declaration
public DatePicker()
Fields
DisplayDateEndProperty
Declaration
public static AutomationProperty DisplayDateEndProperty
Field Value
DisplayDateProperty
Declaration
public static AutomationProperty DisplayDateProperty
Field Value
DisplayDateStartProperty
Declaration
public static AutomationProperty DisplayDateStartProperty
Field Value
FirstDayOfWeekProperty
Declaration
public static AutomationProperty FirstDayOfWeekProperty
Field Value
IsDropDownOpenProperty
Declaration
public static AutomationProperty IsDropDownOpenProperty
Field Value
IsTodayHighlightedProperty
Declaration
public static AutomationProperty IsTodayHighlightedProperty
Field Value
SelectedDateFormatProperty
Declaration
public static AutomationProperty SelectedDateFormatProperty
Field Value
SelectedDateProperty
Declaration
public static AutomationProperty SelectedDateProperty
Field Value
SelectionBackgroundProperty
Declaration
public static AutomationProperty SelectionBackgroundProperty
Field Value
TextProperty
Declaration
public static AutomationProperty TextProperty
Field Value
Properties
DisplayDateEnd
Declaration
public DateTime? DisplayDateEnd { get; set; }
Property Value
DisplayDateStart
Declaration
public DateTime? DisplayDateStart { get; set; }
Property Value
FirstDayOfWeek
Declaration
public DayOfWeek FirstDayOfWeek { get; set; }
Property Value
IsDropDownOpen
Get/set whether the drop down is open.
Declaration
public bool IsDropDownOpen { get; set; }
Property Value
Implements
PickerTextBox
Get the picker text box element. Override for custom control template.
Declaration
public virtual IDatePickerTextBox PickerTextBox { get; }
Property Value
Implements
SelectedDate
Get the DatePicker selected date.
Declaration
public DateTime? SelectedDate { get; set; }
Property Value
Implements
SelectedDateFormat
Declaration
public DatePickerFormat SelectedDateFormat { get; set; }
Property Value
Text
Gets the first text block text.
TogglePopupButton
Get the picker toggle popup button element. Override for custom control template.
Declaration
public virtual IButton TogglePopupButton { get; }
Property Value
Implements
Methods
GetRealType()
Gets the real object type. This property returns string.empty on FrameworkElement and all subclasses that inherit from it.
OpenCalendarPopup(bool)
Open the picker calendar popup.
Declaration
public void OpenCalendarPopup(bool simulateRealUser)
Parameters
simulateRealUser
True to find the button and click on it, false to change the state via automation property.
Implements
SetText(bool, string, int, int)
Sets new text into the date picker text box.
Declaration
public void SetText(bool simulateRealUser, string text, int keyPressTime, int keyHoldTime)
Parameters
simulateRealUser
Whether to simulate typing into the text box or just replace its text.
text
The text to type or set.
keyPressTime
The delay between each press when typing.
keyHoldTime
The delay between pressing and releasing each key when typing.
Implements