1

I am re-factoring my application to implement the MVVM design and i came across my first problem...

Compiler won't let me bind to the Password property of the PasswordBox control.

Anyone have any ideas / suggestions.

Michal Ciechan
  • 12,808
  • 11
  • 72
  • 111

2 Answers2

1

Dunno if there is a best practices version, but here's a dirty filthy hack.

0

As it may be useful to others, this answer shows another possible solution for this problem: the idea there is to pass the PasswordBox as a parameter to the command that handles the password validation so that its Password property is accessible from there...

Community
  • 1
  • 1
Yannick Blondeau
  • 9,207
  • 7
  • 51
  • 71