简体   繁体   中英

How to initialize WPF Browser Application with Prism?

I'm starting to developp a WPF browser application using Prism framework with MEF, but my lack of experience with prism make it difficult to start. All of the examples, tutorials or quickstarts that I've seen something like this :

Application.Current.MainWindow = (Window)this.Shell;
Application.Current.MainWindow.Show();

But this concerns only WPF window applications, right ? I mean, browser applications use Page and not Window. So i would like to know if it is possible to make a cast or to initialize my Shell by an other way.

Thanx in advance !

Silverlight shell is created in a similar manner:

Application.Current.RootVisual = (UIElement)this.Shell;

more information can be found here: http://msdn.microsoft.com/en-us/library/ff921096%28v=PandP.40%29.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM