Jason
Jason

Reputation: 17089

Specify XBAP at runtime, in my .NET WPF application?

Can I host an XBAP in my WPF application dynamically?

Can I download an XBAP, set it to be hosted in my WPF application, and interact with it programatically?

Upvotes: 2

Views: 454

Answers (1)

casperOne
casperOne

Reputation: 74530

I would assume "yes", since you can always place a WebBrowser control in your application and then call Navigate with the url to the XBAP application that you wish to launch.

As a matter of fact, this is recomended in the documentation from Microsoft for the IWpfHostSupport interface

Specifically, in the "remarks" section (emphasis mine):

Win32 applications such as Web browsers can host WPF content, including XAML browser applications (XBAPs) and loose XAML. To host WPF content, Win32 applications create an instance of the WebBrowser control.

Upvotes: 2

Related Questions