The Caliburn.Micro home page at http://caliburnmicro.com makes the below claim but I am unable to make CM work with a PasswordBox control using any variation I can think of
The solutions provided here seem to be needlessly complicated.
We can very easily use Caliburn.Micro actions to send our password to the ViewModel.
XAML:
ViewModel:
public void OnPasswordChanged(PasswordBox source)
{
password = source.Password;
}
Then remember to clear the password fields so they don't remain in memory.
NOTE: Obviously this solution doesn't allow you to easily change the password from the ViewModel, if that is necessary, then it's probably best to go with the attached property approach.