Skinnable silverlight applications
-
Hey guys, I'm developing a kind of website content management system. Users can drop 'blocks' of content on a page and some blocks are silverlight applications (for example picturebooks). I want users to be able to 'skin' the silverlight application like a css stylesheet would do that for a webpage. I was thinking of defining properties for objects used in the silverlight application (for example a button and an image) and let the user decide the values of the properties. Is there a built in feature in Silverlight which allows me to create such functionality or do I have to write code for each and every property in silverlight which means a lot (A LOT) of coding... Thanks!
.: I love it when a plan comes together :. http://www.zonderpunt.nl
-
Hey guys, I'm developing a kind of website content management system. Users can drop 'blocks' of content on a page and some blocks are silverlight applications (for example picturebooks). I want users to be able to 'skin' the silverlight application like a css stylesheet would do that for a webpage. I was thinking of defining properties for objects used in the silverlight application (for example a button and an image) and let the user decide the values of the properties. Is there a built in feature in Silverlight which allows me to create such functionality or do I have to write code for each and every property in silverlight which means a lot (A LOT) of coding... Thanks!
.: I love it when a plan comes together :. http://www.zonderpunt.nl
You could merged dictionaries to provide alternate "skins" for controls. Allowing the user to change them will require some coding definitely, because you'll need to build dictionaries at runtime and probably need a way to save the user's preferences. The ImplicitStyleManager can help for applying styles to controls at runtime so you don't have to do that part manually. Implicit Style Manager and Merged Dictionaries[^]
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
You could merged dictionaries to provide alternate "skins" for controls. Allowing the user to change them will require some coding definitely, because you'll need to build dictionaries at runtime and probably need a way to save the user's preferences. The ImplicitStyleManager can help for applying styles to controls at runtime so you don't have to do that part manually. Implicit Style Manager and Merged Dictionaries[^]
Mark Salsbery Microsoft MVP - Visual C++ :java:
The implicit style manager is probably the one I was looking for. Thanks!!
.: I love it when a plan comes together :. http://www.zonderpunt.nl