Interface
IDatePicker

Represents interface for the Xaml DatePicker control wrappers.

Definition

Namespace:ArtOfTest.WebAii.Controls.Xaml

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public interface IDatePicker : IFrameworkElement, ITargetElement

Derived Classes: DatePickerDatePicker

Inherited Members IFrameworkElement.CastAs<T>()IFrameworkElement.Parent<T>()IFrameworkElement.SetProxy(bool)IFrameworkElement.SetUid(string)IFrameworkElement.SetFindInfo(VisualFindInfo)IFrameworkElement.SetXamlTag(string)IFrameworkElement.AssignReference(AutomationReference)IFrameworkElement.SetFocus()IFrameworkElement.GetAutomationProperty(string)IFrameworkElement.GetProperty<T>(string)IFrameworkElement.GetPropertyTypeSafe(string)IFrameworkElement.SetProperty(string, object)IFrameworkElement.ScrollToVisible()IFrameworkElement.UserIFrameworkElement.FindIFrameworkElement.WaitIFrameworkElement.NameIFrameworkElement.AbsoluteSiblingTagIndexIFrameworkElement.ActualWidthIFrameworkElement.ActualHeightIFrameworkElement.TextIFrameworkElement.ToolTipTextIFrameworkElement.TextBlockContentIFrameworkElement.TextLiteralContentIFrameworkElement.ComputedVisibilityIFrameworkElement.UidITargetElement.Match(IFindExpression)ITargetElement.SetDepth(int)ITargetElement.AddChildNode(ITargetElement)ITargetElement.SetClosingTag(ITargetElement)ITargetElement.GetChildren()ITargetElement.GetParent()ITargetElement.GetHostParent()ITargetElement.SetParent(ITargetElement)ITargetElement.Refresh()ITargetElement.GetUniqueHashCode()ITargetElement.GetRectangle()ITargetElement.Capture()ITargetElement.CaptureImage()ITargetElement.GetStringPresentation()ITargetElement.TechnologyTypeITargetElement.DepthITargetElement.IsTestRegionITargetElement.ParsedElementITargetElement.Host

Properties

IsDropDownOpen

Get/set whether the drop down is open.

Declaration

cs-api-definition
bool IsDropDownOpen { get; set; }

Property Value

bool

PickerTextBox

Get the picker text box element.

Declaration

cs-api-definition
IDatePickerTextBox PickerTextBox { get; }

Property Value

IDatePickerTextBox

SelectedDate

Get the DatePicker selected date.

Declaration

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

Property Value

DateTime?

TogglePopupButton

Get the picker toggle popup button element.

Declaration

cs-api-definition
IButton TogglePopupButton { get; }

Property Value

IButton

Methods

OpenCalendarPopup(bool)

Open the picker calendar popup.

Declaration

cs-api-definition
void OpenCalendarPopup(bool simulateRealUser)

Parameters

simulateRealUser

bool

True to find the button and click on it, false to change the state via automation property.

SetText(bool, string, int, int)

Sets new text into the date picker text box.

Declaration

cs-api-definition
void SetText(bool simulateRealUser, string text, int keyPressTime, int keyHoldTime)

Parameters

simulateRealUser

bool

Whether to simulate typing into the text box or just replace its text.

text

string

The text to type or set.

keyPressTime

int

The delay between each press when typing.

keyHoldTime

int

The delay between pressing and releasing each key when typing.