c# - Change Application.ResourceAssembly in WPF? -


this question puzzled me.

in beginning, application.resourceassembly null;

application.resourceassembly = assembly1;  // it's ok application.resourceassembly = assembly2;  // has error. 

a first chance exception of type 'system.xaml.xamlobjectwriterexception' occurred in system.xaml.dll

so, can application.resourceassembly assigned if isn't null??

the problem trying set application.resourceassembly twice. can set once.

here msdn quote application.resourceassembly property page:

resourceassembly can set once because unlikely resource assembly change after wpf assembly loaded.


Comments