Navigation :
Introduction
FAQ
Setup, deployment & projects
Getting started
Examples
Catel.Core
Catel.MVVM
-
Auditing
-
Behaviors & triggers
--
--
-- Authentication
-- AutoCompletionBehavior
-- AutoScroll
-- DelayBindingUpdate
-- DoubleClickToCommand
-- EventToCommand
-- Focus
-- HideUntilViewModelLoaded
-- KeyPressToCommand
-- MouseInfo
-- Navigate
-- NumericTextBox
-- SelectTextOnFocus
-- UpdateBindingOnPasswordChanged
-- UpdateBindingOnTextChanged
-
Bindings
-
Commands & events
-
Converters
-
Designers
-
Locators & naming conventions
-
Services
-
View models
-
Views
Catel.Fody
Catel.ReSharper
Tips & tricks
API reference
UpdateBindingOnPasswordChanged
The UpdateBindingOnPasswordChanged
is a very useful behavior which allows to bind the Password
property of the PasswordBox
Control. Use it, it’s really simple.
1) Add the following XML namespaces:
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:catel="http://schemas.catelproject.com"
2) Use the following definition:
<PasswordBox>
<i:Interaction.Behaviors>
<catel:UpdateBindingOnPasswordChanged Password="{Binding Password, Mode=TwoWay}" />
</i:Interaction.Behaviors>
</PasswordBox>
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion
Please enable JavaScript to view the comments powered by Disqus.