Open new Page from an Xbap

Our application is an Xbap running in full trust. I have a function similar to this:

private void ShowPage(Page page)
    NavigationWindow mainWindow = Application.Current.MainWindow as NavigationWindow;  

This works great for browsing inside an existing window. I would like to open this new page in a separate window. Is there anyway to do this?

There is an overload that takes 'extraData' but I haven't been able to determine what to pass to navigate to a new window.


Apparently WPF is a little new for StackOverflow. Here is the function I came up with in case anyone else stumbles across this.

private void ShowPage(Page page)
    NavigationWindow popup = new NavigationWindow();  
    popup.Height = 400;
    popup.Width = 600;

I have not tried this in partial trust, it is likely this only works in full trust.

Need Your Help

Android Fetch Contacts into the Application

android android-contentprovider android-contacts

I am trying to show a list of Contacts from the users phone in a List view inside the application. I am able to fetch the contacts but some of the Contacts will have mutiple cellphone numbers so i ...

AVFoundation - How save AVCaptureMovieFileDataOutput to file?

ios objective-c avfoundation avcapturesession avcapturemoviefileoutput

I've been going through the AV Foundation Programming Guide. In particular I've been trying to get the "Putting it all together" part in the "Media Capture" section to work. I've made some minor ch...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.