Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 2.7 KB

passwordboxautomationpeer.md

File metadata and controls

35 lines (24 loc) · 2.7 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Automation.Peers.PasswordBoxAutomationPeer
winrt class

Microsoft.UI.Xaml.Automation.Peers.PasswordBoxAutomationPeer

-description

Exposes PasswordBox types to Microsoft UI Automation.

-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.

-examples

-see-also

FrameworkElementAutomationPeer, PasswordBox, Custom automation peers