ClassRadPasswordBoxAutomationPeer
Provides an automation peer for the RadPasswordBox class, enabling UI Automation clients to interact with the password box control, including the ability to toggle the visibility of the password. This class extends the functionality of the RadWatermarkTextBoxAutomationPeer and implements the IToggleProvider interface. It allows the retrieval of property values specific to the password box, and provides access to toggle state to indicate whether the password is currently visible or hidden.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class RadPasswordBoxAutomationPeer : RadWatermarkTextBoxAutomationPeer, IValueProvider, IToggleProvider
Inheritance: objectRadWatermarkTextBoxAutomationPeerRadPasswordBoxAutomationPeer
Implements:
Inherited Members
Constructors
RadPasswordBoxAutomationPeer(RadPasswordBox)
Initializes a new instance of the RadPasswordBoxAutomationPeer class.
Declaration
public RadPasswordBoxAutomationPeer(RadPasswordBox owner)
Parameters
owner
The owner.
Properties
ToggleState
Gets the toggle state of the control.
Declaration
public ToggleState ToggleState { get; }
Property Value
ToggleState
The toggle state of the control, as a value of the enumeration.
Methods
GetLocalizedControlTypeCore()
When overridden in a derived class, is called by .
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
The type of the control.
Overrides
GetPattern(PatternInterface)
Gets the pattern.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
patternInterface
PatternInterface
Returns
Overrides
SetValue(string)
Sets the value of a control.
Declaration
public override void SetValue(string value)
Parameters
value
Exceptions
If locale-specific information is passed to a control in an incorrect format such as an incorrectly formatted date.
If a new value cannot be converted from a string to a format the control recognizes.
When an attempt is made to manipulate a control that is not enabled.
Overrides
Toggle()
Cycles through the toggle states of a control.
Declaration
public void Toggle()