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?
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.