In Silverlight project, I use the Assembly which is downloaded at a time to represent page.
The Assembly is created to an instance of a customized control.
But in CSHTML5,how to do this?
1. Assemble download
2. CreateInstance
Thanks!
Code: Select all
byte[] binary = Convert.FromBase64String(AssemblyBase64Content);
System.IO.MemoryStream memoryStream = new System.IO.MemoryStream(binary);
AssemblyPart assemblyPart = new AssemblyPart();
Assembly assembly = assemblyPart.Load(memoryStream);
object obj = assembly.CreateInstance(className);
ApplicationCanvas.Children.Add((control)obj);