similar to the scenario mentioned in the question: Binding the "WindowState" property of a window in WPF using MVVM
Using Prism (views,modules,shell) I have a Shell.xaml (belongs to WPFProject) which loads 2 views in order:
- LoginView.xaml(usercontrol) from SecurityModule(another classlibrary project)
- MainScreenView.xaml(usercontrol) from ProductModule(another classlibrary project) - on click of "Sign-in" button on LoginView.xaml
The LoginView.xaml is smaller like width=300, height=300. But the MainScreenView.xaml needs to be displayed in maximized size.
Now to display MainScreenView.xaml on the shell, the windowstate needs to be maximized.
How can I expose the Shell WindowState property, so that I can change while loading views on the shell using Prism with MVVM?
Refer the sample Prism MVVM example from the link : http://weblogs.asp.net/sujithkjagini/archive/2011/02/02/building-applications-with-wpf-and-prism-aka-cag.aspx