silverlight 4, dynamically loading xap modules
问题 I know that it is possible to load xap modules dynamically using Prism or MEF framework. However, I'd like not to use those frameworks; instead load my xap files manually. So, I created the following class (adapted from internet): public class XapLoader { public event XapLoadedEventHandler Completed; private string _xapName; public XapLoader(string xapName) { if (string.IsNullOrWhiteSpace(xapName)) throw new ArgumentException("Invalid module name!"); else _xapName = xapName; } public void