Reputation: 42500
I have four Silverlight 4 apps, for which I'm trying to build a "shell" to host them in, dynamically loading the Xaps on demand, and giving the user the impression they are a single application.
Each application currently has its own App.xaml, which defines a System.Windows.Application. My question is - if my outer shell app defines an App.xaml, then can the Xap files it loads also define one? Or must there only be one App.xaml across all the constituent apps?
Upvotes: 1
Views: 114
Reputation: 20445
The other assemblies can define their own App.xaml files, but they won't be executed or referenced. In my testing, the only App.xaml that gets used/executed is the one that's defined by the first (container) application. Any reference after that to App.Current will return that particular instance.
Upvotes: 1