Class DatePickerAutomationPeer
Exposes DatePicker types to UI automation.
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.Controls.dll
Syntax
public class DatePickerAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IExpandCollapseProvider, IValueProvider
Constructors
| Improve this Doc View SourceDatePickerAutomationPeer(DatePicker)
Initializes a new instance of the DatePickerAutomationPeer class.
Declaration
public DatePickerAutomationPeer(DatePicker owner)
Parameters
Type | Name | Description |
---|---|---|
DatePicker | owner | The DatePicker to associate with the DatePickerAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the element that is associated with the UI Automation peer.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | The control type. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Called by GetClassName that gets a human readable name that, in addition to AutomationControlType, differentiates the control represented by this AutomationPeer.
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The string that contains the name. |
Overrides
| Improve this Doc View SourceGetLocalizedControlTypeCore()
Overrides the GetLocalizedControlTypeCore method for DatePicker.
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
Type | Description |
---|---|
System.String | Inherited code: Requires comment. |
Overrides
| Improve this Doc View SourceGetNameCore()
Inherited code: Requires comment.
Declaration
protected override string GetNameCore()
Returns
Type | Description |
---|---|
System.String | Inherited code: Requires comment 1. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets the control pattern for the DatePicker that is associated with this DatePickerAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | patternInterface | One of the enumeration values. |
Returns
Type | Description |
---|---|
System.Object | The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIExpandCollapseProvider.Collapse()
Hides all nodes, controls, or content that are descendants of the control.
Declaration
void IExpandCollapseProvider.Collapse()
IExpandCollapseProvider.Expand()
Displays all child nodes, controls, or content of the control.
Declaration
void IExpandCollapseProvider.Expand()
IExpandCollapseProvider.ExpandCollapseState
Gets the state, expanded or collapsed, of the control.
Declaration
ExpandCollapseState IExpandCollapseProvider.ExpandCollapseState { get; }
Returns
Type | Description |
---|---|
ExpandCollapseState | The state, expanded or collapsed, of the control. |
IValueProvider.IsReadOnly
Gets a value indicating whether the value of a control is read-only.
Declaration
bool IValueProvider.IsReadOnly { get; }
Returns
Type | Description |
---|---|
System.Boolean | Returns false. |
IValueProvider.SetValue(String)
Sets the value of a control.
Declaration
void IValueProvider.SetValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value to set. The provider is responsible for converting the value to the appropriate data type. |
IValueProvider.Value
Gets the value of the control.
Declaration
string IValueProvider.Value { get; }
Returns
Type | Description |
---|---|
System.String | The value of the control as a string. |