I'm looking for a way to download specific Telerik themes (dlls) dynamically at run time to avoid the overhead of downloading all possible themes (significantly adding to download times) when only one (determined at run time based on user selection or querystring parameter) is required by the user at any one time.
The example code I've found in the Telerik documentation seems to assume all Theme dlls will be referenced (and downloaded) as part of the main project. Is there a documented process/sample code for doing what I want with the Telerik theme dlls?
Ideally I would like to use MEF to dynamically load the required theme. If I had written the theme myself I would do this by defining an ITheme interface and decorating my various Theme classes with the appropriate Export attribute. There is a good overview of this process here: http://www.silverlightshow.net/items/Honey-I-MEF-fed-the-Silverlight-Gallery-for-Christmas-Part-1.aspx
Is there something similar available for the Telerik theme dlls? (eg is there a defined ITheme interface and have the classes been decorated with the Export attribute) or is there another way to achieve what I want?
Thanks,
Ian
The example code I've found in the Telerik documentation seems to assume all Theme dlls will be referenced (and downloaded) as part of the main project. Is there a documented process/sample code for doing what I want with the Telerik theme dlls?
Ideally I would like to use MEF to dynamically load the required theme. If I had written the theme myself I would do this by defining an ITheme interface and decorating my various Theme classes with the appropriate Export attribute. There is a good overview of this process here: http://www.silverlightshow.net/items/Honey-I-MEF-fed-the-Silverlight-Gallery-for-Christmas-Part-1.aspx
Is there something similar available for the Telerik theme dlls? (eg is there a defined ITheme interface and have the classes been decorated with the Export attribute) or is there another way to achieve what I want?
Thanks,
Ian