PasswordBoxAutomationPeer PasswordBoxAutomationPeer PasswordBoxAutomationPeer PasswordBoxAutomationPeer Class

Definition

Exposes PasswordBox types to Microsoft UI Automation.

public : class PasswordBoxAutomationPeer : FrameworkElementAutomationPeer, IPasswordBoxAutomationPeerpublic class PasswordBoxAutomationPeer : FrameworkElementAutomationPeer, IPasswordBoxAutomationPeerPublic Class PasswordBoxAutomationPeer Inherits FrameworkElementAutomationPeer Implements IPasswordBoxAutomationPeer// This API is not available in Javascript.
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties

Remarks

The Windows Runtime PasswordBox class creates a new PasswordBoxAutomationPeer as its OnCreateAutomationPeer definition. PasswordBox is sealed, so the normal scenario of deriving from the PasswordBox class and its existing peer isn't applicable to PasswordBoxAutomationPeer.

Default peer implementation and overrides in PasswordBoxAutomationPeer

PasswordBoxAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.

Any value entered for a password is potentially sensitive information and is often handled differently from a normal edit box by assistive technology implementations. For example a screen reader might not read characters aloud when IsPassword returns true.

The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.

Constructors

PasswordBoxAutomationPeer(PasswordBox) PasswordBoxAutomationPeer(PasswordBox) PasswordBoxAutomationPeer(PasswordBox) PasswordBoxAutomationPeer(PasswordBox)

Initializes a new instance of the PasswordBoxAutomationPeer class.

public : PasswordBoxAutomationPeer(PasswordBox owner)public PasswordBoxAutomationPeer(PasswordBox owner)Public Sub New(owner As PasswordBox)// This API is not available in Javascript.
Parameters
owner
PasswordBox PasswordBox PasswordBox PasswordBox

The PasswordBox to create a peer for.

See Also