0

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:

  1. LoginView.xaml(usercontrol) from SecurityModule(another classlibrary project)
  2. 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

Community
  • 1
  • 1
rakheep
  • 95
  • 1
  • 4

1 Answers1

0

A simple solution is using events of Prism. Prism contains an EventAggregator which permits communication between modules. You can find an example at the end of the page that you linked in the post, but it can be not so clear. This other link might help you link

pluka
  • 133
  • 1
  • 5