Hey, so I have got my Register method working perfectly and the Validation. However I also have got a login section on the same Window, how would you go about working this?
Only think I can think of is instead of having EditVM, I would have 2 different ViewModel's, one calledRegVM, and the other LogVM. Or another idea, could the ContentControl which contains either form somehow execute a Command when it has got focus, so if I focus on a TextBox within the Login ContentControl then the EditVM would be set to a new instance of LoginVM, and if I select a TextBox within the Register ContentControl, then EditVM is set to a new instance of RegisterVM?
The other issue is that because both VM's will be using the same User class, how can I ignore some validation if it isn't needed for that form? My Register form uses all the validation, however my Login form only needs the Email and Password, but I can't submit that Entity to the IsValid method as all the other properties would be empty!