Class
RadPasswordBoxAutomationPeer

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:

cs-api-definition
public class RadPasswordBoxAutomationPeer : RadWatermarkTextBoxAutomationPeer, IValueProvider, IToggleProvider

Inheritance: objectRadWatermarkTextBoxAutomationPeerRadPasswordBoxAutomationPeer

Implements: IToggleProviderIValueProvider

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

Constructors

RadPasswordBoxAutomationPeer(RadPasswordBox)

Initializes a new instance of the RadPasswordBoxAutomationPeer class.

Declaration

cs-api-definition
public RadPasswordBoxAutomationPeer(RadPasswordBox owner)

Parameters

owner

RadPasswordBox

The owner.

Properties

ToggleState

Gets the toggle state of the control.

Declaration

cs-api-definition
public ToggleState ToggleState { get; }

Property Value

ToggleState

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

Methods

GetClassNameCore()

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

Overrides RadWatermarkTextBoxAutomationPeer.GetClassNameCore()

GetHelpTextCore()

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

Overrides RadWatermarkTextBoxAutomationPeer.GetHelpTextCore()

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by .

Declaration

cs-api-definition
protected override string GetLocalizedControlTypeCore()

Returns

string

The type of the control.

Overrides RadWatermarkTextBoxAutomationPeer.GetLocalizedControlTypeCore()

GetPattern(PatternInterface)

Gets the pattern.

Declaration

cs-api-definition
public override object GetPattern(PatternInterface patternInterface)

Parameters

patternInterface

PatternInterface

Returns

object

Overrides RadWatermarkTextBoxAutomationPeer.GetPattern(PatternInterface)

IsPasswordCore()

Declaration

cs-api-definition
protected override bool IsPasswordCore()

Returns

bool

SetValue(string)

Sets the value of a control.

Declaration

cs-api-definition
public override void SetValue(string value)

Parameters

value

string

Exceptions

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)

Toggle()

Cycles through the toggle states of a control.

Declaration

cs-api-definition
public void Toggle()