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
  • 13,492
  • 11
  • 76
  • 118

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,465
  • 8
  • 52
  • 74