Application.Current changes when using reflection to create an instance of another Application class
- by markti
Let's say I have the following Silverlight Applications:
App1.xap
App2.xap
App3.xap
Let's say that I start App1.xap as the default xap file. If I load App2.xap and App3.xap and instantiate an Application class within one of the other two XAPs. The Application.Current changes to be that new instance.
System.Windows.Application obj =…