New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class RadPasswordBoxAutomationPeer : RadWatermarkTextBoxAutomationPeer, IValueProvider, IToggleProvider

Inheritance: objectRadWatermarkTextBoxAutomationPeerRadPasswordBoxAutomationPeer

Implements: IToggleProviderIValueProvider

Inherited Members RadWatermarkTextBoxAutomationPeer.GetChildrenCore()RadWatermarkTextBoxAutomationPeer.GetAutomationControlTypeCore()RadWatermarkTextBoxAutomationPeer.GetNameCore()RadWatermarkTextBoxAutomationPeer.GetItemStatusCore()RadWatermarkTextBoxAutomationPeer.ValueRadWatermarkTextBoxAutomationPeer.IsReadOnly...

Constructors

Initializes a new instance of the RadPasswordBoxAutomationPeer class.

C#
public RadPasswordBoxAutomationPeer(RadPasswordBox owner)
Parameters:ownerRadPasswordBox

The owner.

Properties

ToggleState

ToggleState

Gets the toggle state of the control.

C#
public ToggleState ToggleState { get; }
Property Value:

The toggle state of the control, as a value of the enumeration.

Methods

C#
protected override string GetClassNameCore()
Returns:

string

Overrides: RadWatermarkTextBoxAutomationPeer.GetClassNameCore()

C#
protected override string GetHelpTextCore()
Returns:

string

Overrides: RadWatermarkTextBoxAutomationPeer.GetHelpTextCore()

When overridden in a derived class, is called by .

C#
protected override string GetLocalizedControlTypeCore()
Returns:

string

The type of the control.

Overrides: RadWatermarkTextBoxAutomationPeer.GetLocalizedControlTypeCore()

Gets the pattern.

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterfaceReturns:

object

Overrides: RadWatermarkTextBoxAutomationPeer.GetPattern(PatternInterface)

C#
protected override bool IsPasswordCore()
Returns:

bool

Sets the value of a control.

C#
public override void SetValue(string value)
Parameters:valuestringExceptions:

InvalidOperationException

If locale-specific information is passed to a control in an incorrect format such as an incorrectly formatted date.

ArgumentException

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: RadWatermarkTextBoxAutomationPeer.SetValue(string)

Cycles through the toggle states of a control.

C#
public void Toggle()