Class PasswordBoxAutomationPeer
Exposes PasswordBox types to UI automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class PasswordBoxAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IValueProvider
Constructors
| Improve this Doc View SourcePasswordBoxAutomationPeer(PasswordBox)
Initializes a new instance of the PasswordBoxAutomationPeer class.
Declaration
public PasswordBoxAutomationPeer(PasswordBox owner)
Parameters
Type | Name | Description |
---|---|---|
PasswordBox | owner | The PasswordBox that is associated with this PasswordBoxAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the element that is associated with this PasswordBoxAutomationPeer. This method is called by GetAutomationControlType().
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | A value of the enumeration. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the class that is associated with this PasswordBoxAutomationPeer. This method is called by GetClassName().
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The class name. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets an object that supports the requested pattern, based on the patterns supported by this PasswordBoxAutomationPeer.
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
| Improve this Doc View SourceIsPasswordCore()
Gets a value that indicates whether the PasswordBox associated with this peer is understood by the user as interactive or as contributing to the logical structure of the UI.
Declaration
protected override bool IsPasswordCore()
Returns
Type | Description |
---|---|
System.Boolean | false if the element is part of an applied template; otherwise, true. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValueProvider.IsReadOnly
Declaration
bool IValueProvider.IsReadOnly { get; }
Returns
Type | Description |
---|---|
System.Boolean |
IValueProvider.SetValue(String)
Declaration
void IValueProvider.SetValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
IValueProvider.Value
Declaration
string IValueProvider.Value { get; }
Returns
Type | Description |
---|---|
System.String |