Quantcast
Viewing all articles
Browse latest Browse all 18858

How To Minimize and close window in MVVM

Hi All,

I am developing an MVVM application and i want to minimize and close the window in MVVM.

so i know that i have Two alternatives to do this:

1) Write the click handler in Code-behind 

2)and write command in ViewModel.

i have no validation while closing and minimizing so i don't

Which is the correct way to close and minimize the window in MVVM ?



Vikas Gupta


Viewing all articles
Browse latest Browse all 18858

Trending Articles