Rony
Rony

Reputation: 49

WPF prism : developing new modules

We have an windows application that runs the trivial way. Is it possible to use Prism for only the new screens or modules we develop for our application without changing the way the main application is running right now?

Upvotes: 0

Views: 102

Answers (1)

stijn
stijn

Reputation: 35921

Sort of. You will have to do some modification to your main app to work together with Prism: it'll have to load the modules, and it's window(s) must expose one or more containers where Prism can put it's windows. Apart from that nothing changes.

Practically you'll have to implement a Prism BootStrapper (eg derive from MefBootStrapper) and run it in App.xaml.cs. And one or more ContentControls with a RegionName set where prism can create it's window content.

Upvotes: 3

Related Questions