Class
DatePicker

Definition

Namespace:ArtOfTest.WebAii.Controls.Xaml.Wpf

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class DatePicker : Control, IAutomationPeer, IPeerConverter, IControl, IDatePicker, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementWpfTestElementControlDatePicker

Implements: IAutomationPeerIControlIDatePickerIFrameworkElementIPeerConverterITargetElement

Inherited Members Control.BorderBrushPropertyControl.BorderThicknessPropertyControl.BackgroundPropertyControl.ForegroundPropertyControl.FontSizePropertyControl.HorizontalContentAlignmentPropertyControl.VerticalContentAlignmentPropertyControl.TabIndexPropertyControl.IsTabStopPropertyControl.PaddingPropertyControl.FontFamilyPropertyControl.FontStretchPropertyControl.FontStylePropertyControl.FontWeightPropertyControl.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.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.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

DatePicker()

Declaration

cs-api-definition
public DatePicker()

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

FirstDayOfWeekProperty

Declaration

cs-api-definition
public static AutomationProperty FirstDayOfWeekProperty

Field Value

AutomationProperty

IsDropDownOpenProperty

Declaration

cs-api-definition
public static AutomationProperty IsDropDownOpenProperty

Field Value

AutomationProperty

IsTodayHighlightedProperty

Declaration

cs-api-definition
public static AutomationProperty IsTodayHighlightedProperty

Field Value

AutomationProperty

SelectedDateFormatProperty

Declaration

cs-api-definition
public static AutomationProperty SelectedDateFormatProperty

Field Value

AutomationProperty

SelectedDateProperty

Declaration

cs-api-definition
public static AutomationProperty SelectedDateProperty

Field Value

AutomationProperty

TextProperty

Declaration

cs-api-definition
public static AutomationProperty TextProperty

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?

FirstDayOfWeek

Declaration

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

Property Value

DayOfWeek

IsDropDownOpen

Get/set whether the drop down is open.

Declaration

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

Property Value

bool

Implements IDatePicker.IsDropDownOpen

IsTodayHighlighted

Declaration

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

Property Value

bool

PickerTextBox

Get the picker text box element. Override for custom control template.

Declaration

cs-api-definition
public virtual IDatePickerTextBox PickerTextBox { get; }

Property Value

IDatePickerTextBox

Implements IDatePicker.PickerTextBox

SelectedDate

Get the DatePicker selected date.

Declaration

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

Property Value

DateTime?

Implements IDatePicker.SelectedDate

SelectedDateFormat

Declaration

cs-api-definition
public DatePickerFormat SelectedDateFormat { get; set; }

Property Value

DatePickerFormat

Text

Gets the first text block text.

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string

Implements IFrameworkElement.Text

TogglePopupButton

Get the picker toggle popup button element. Override for custom control template.

Declaration

cs-api-definition
public virtual IButton TogglePopupButton { get; }

Property Value

IButton

Implements IDatePicker.TogglePopupButton

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()

OpenCalendarPopup(bool)

Open the picker calendar popup.

Declaration

cs-api-definition
public void OpenCalendarPopup(bool simulateRealUser)

Parameters

simulateRealUser

bool

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

Implements IDatePicker.OpenCalendarPopup(bool)

SetText(bool, string, int, int)

Sets new text into the date picker text box.

Declaration

cs-api-definition
public 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.

Implements IDatePicker.SetText(bool, string, int, int)