c# - Windows Store App loading library at runtime xaml error -
i'm loading library windows store app through reflection (activator.createinstance), when initializecomponent() page class being loaded dynamically called exception of "unspecified error". there no dots in assembly name loaded , i've placed xaml in correct place specified uri in code behind. i'm using visual studio update 3. have searched extensively internet , haven't clues what's problem. strange thing noticed after loadcomponent() called debugger goes through xamltypeinfo.g.cs code of main assembly , not 1 of assembly being loaded, may that's problem. thanks
this happens because winrt xaml needs xamlmetadataprovider autogenerated , resides in dynamically loaded assembly in case. explanation see:
http://www.sharpgis.net/post/2013/05/30/decoding-the-ixamlmetadataprovider-interface-part-1.aspx
Comments
Post a Comment