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
Initializes a new instance of the RadPasswordBoxAutomationPeer class.
public RadPasswordBoxAutomationPeer(RadPasswordBox owner)
The owner.
Properties
ToggleState
ToggleState
Gets the toggle state of the control.
public ToggleState ToggleState { get; }
The toggle state of the control, as a value of the enumeration.
Methods
When overridden in a derived class, is called by .
protected override string GetLocalizedControlTypeCore()
The type of the control.
Overrides:
Gets the pattern.
public override object GetPattern(PatternInterface patternInterface)
Overrides:
Sets the value of a control.
public override void SetValue(string value)
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:
Cycles through the toggle states of a control.
public void Toggle()