Skip to content

ControlExtensions.BindPassword method (1 of 2)

Binds the password to an observable value.

public static PasswordBox BindPassword(this PasswordBox passwordBox, ObservableValue<string> source)
parameter description
passwordBox Target password box.
source Observable source.

The password box for chaining.

Sets: PasswordBox.Password


ControlExtensions.BindPassword<TSource> method (2 of 2)

Section titled “ControlExtensions.BindPassword<TSource> method (2 of 2)”

Binds the password to a converted observable value.

public static PasswordBox BindPassword<TSource>(this PasswordBox passwordBox,
ObservableValue<TSource> source, Func<TSource, string> convert,
Func<string, TSource>? convertBack = null)
parameter description
TSource Source value type.
passwordBox Target password box.
source Observable source.
convert Source-to-password converter.
convertBack Optional password-to-source converter.

The password box for chaining.