Click here to Skip to main content
16,016,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello EveryBody

As the Title Said is it a good practice to send a reference of the view to the viewmodel so i can close it from there by using the CommendParameter={x:Reference Name=NameOfTheView}.?

if not what would be the best way to do that?

Thank you so much for your time.
Posted

1 solution

If you follow MVVM, the viewmodel should not know something about the view.
 
Share this answer
 
Comments
tux@ddictor 2-Jul-13 16:17pm    
HiYes Am Using MVVM and i know that the viewmodel should not know anything about the View but how can we manage closing Views.I use the approache mentionned above.if that's not the good way than what is a better one?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900