PasswordBox : Control (UWP) TextBox (Android/iOS/tvOS/WASM)

Implemented for: WASM, Skia, Mobile

This document lists all properties, methods, and events of PasswordBox that are currently implemented by the Uno Platform. See the WinUI documentation for detailed usage guidelines which all automatically apply to Uno Platform.

To better understand how PasswordBox works, you can use the Uno Gallery or run your own tests on the Uno Playground.

Implemented properties

Property Supported on
SolidColorBrush SelectionHighlightColor WASM, Skia, Mobile
bool PreventKeyboardDisplayOnProgrammaticFocus Android
string PlaceholderText WASM, Skia, Mobile
PasswordRevealMode PasswordRevealMode WASM, Skia, Mobile
string Password WASM, Skia, Mobile
int MaxLength WASM, Skia, Mobile
bool IsPasswordRevealButtonEnabled WASM, Skia, Mobile
InputScope InputScope WASM, Skia, Mobile
DataTemplate HeaderTemplate WASM, Skia, Mobile
object Header WASM, Skia, Mobile
object Description WASM, Skia, Mobile
DependencyProperty DescriptionProperty WASM, Skia, Mobile
DependencyProperty HeaderProperty WASM, Skia, Mobile
DependencyProperty HeaderTemplateProperty WASM, Skia, Mobile
DependencyProperty InputScopeProperty WASM, Skia, Mobile
DependencyProperty IsPasswordRevealButtonEnabledProperty WASM, Skia, Mobile
DependencyProperty MaxLengthProperty WASM, Skia, Mobile
DependencyProperty PasswordProperty WASM, Skia, Mobile
DependencyProperty PasswordRevealModeProperty WASM, Skia, Mobile
DependencyProperty PlaceholderTextProperty WASM, Skia, Mobile
DependencyProperty PreventKeyboardDisplayOnProgrammaticFocusProperty Android
DependencyProperty SelectionHighlightColorProperty WASM, Skia, Mobile

Implemented methods

Method Supported on
void SelectAll() WASM, Skia, Mobile
void PasteFromClipboard() WASM, Skia, Mobile

Implemented events

Event Supported on
RoutedEventHandler PasswordChanged WASM, Skia, Mobile
TextControlPasteEventHandler Paste WASM, Skia, Mobile

Below are all properties, methods, and events of PasswordBox that are not currently implemented in Uno.

Not implemented properties

Property Not supported on
TextReadingOrder TextReadingOrder all platforms supported by Uno Platform
SolidColorBrush SelectionHighlightColor MacOS
FlyoutBase SelectionFlyout all platforms supported by Uno Platform
bool PreventKeyboardDisplayOnProgrammaticFocus iOS, MacOS, WASM, Skia, tvOS
string PlaceholderText MacOS
PasswordRevealMode PasswordRevealMode MacOS
string PasswordChar all platforms supported by Uno Platform
string Password MacOS
int MaxLength MacOS
bool IsPasswordRevealButtonEnabled MacOS
InputScope InputScope MacOS
DataTemplate HeaderTemplate MacOS
object Header MacOS
object Description MacOS
bool CanPasteClipboardContent all platforms supported by Uno Platform
DependencyProperty CanPasteClipboardContentProperty all platforms supported by Uno Platform
DependencyProperty DescriptionProperty MacOS
DependencyProperty HeaderProperty MacOS
DependencyProperty HeaderTemplateProperty MacOS
DependencyProperty InputScopeProperty MacOS
DependencyProperty IsPasswordRevealButtonEnabledProperty MacOS
DependencyProperty MaxLengthProperty MacOS
DependencyProperty PasswordCharProperty all platforms supported by Uno Platform
DependencyProperty PasswordProperty MacOS
DependencyProperty PasswordRevealModeProperty MacOS
DependencyProperty PlaceholderTextProperty MacOS
DependencyProperty PreventKeyboardDisplayOnProgrammaticFocusProperty iOS, MacOS, WASM, Skia, tvOS
DependencyProperty SelectionFlyoutProperty all platforms supported by Uno Platform
DependencyProperty SelectionHighlightColorProperty MacOS
DependencyProperty TextReadingOrderProperty all platforms supported by Uno Platform

Not implemented methods

Method Not supported on
void SelectAll() MacOS
void PasteFromClipboard() MacOS

Not implemented events

Event Not supported on
ContextMenuOpeningEventHandler ContextMenuOpening all platforms supported by Uno Platform
RoutedEventHandler PasswordChanged MacOS
TypedEventHandler<PasswordBox, PasswordBoxPasswordChangingEventArgs> PasswordChanging all platforms supported by Uno Platform
TextControlPasteEventHandler Paste MacOS

Last updated Monday, 14 April 2025 02:07.