wpf - Can XamlReader load xaml that contains types defined in external assemblies? -
the xamlreader loading xaml using types defined within local assembly , wpf assemblies without problems.
if include types defined within external assemblies xamlparseexception following message thrown.
cannot create unknown type '{clr-namespace:telerik.windows.controls;assembly=telerik.windows.controls.charting}seriesmapping'.' line number '13' , line position '18'.
is possible load types external assemblies using technique?
yes possible. trick load external assemblies appdomain before making call xamlreader.parse.
if assemblies referenced assembly making call simplest means of doing declare variable using type external assembly. note not necessary instantiate type.
alternatively, assembly.load method can used load non referenced assemblies.
Comments
Post a Comment