how can i change layout or them(skin) of my xaml app RRS feed

  • Question

  • hi,

    im looking for a tutorial how to change the style of my xaml app at runtime like skins or themes,
    Do i have to work with resource dictionarys how can i change them while running the app?thx in advance
    Thursday, April 24, 2008 12:58 PM

All replies

  • Howdy,

    There are a few different ways of doing this but the easiest is to
    1. design your first skin styles paying careful note of the names that you give your styles...
    2. design your second skin styles, given the styles the same name to each as before..
    3. in code, load up your skin file and add it to the merged dictionaries of your app and everything will change over.

    Have a look here for some more information on Merged Dictionaries:


    If you get really stuck, let me know and I will post some code for you.

    Learn Expression Blend at learnexpressionstudio.com
    Thursday, April 24, 2008 6:37 PM
  • ok good news i think i got it i just call a method and set the styles of my buttons individual to other styles- the bad thing is i dont use just one style and i didnt pay attention to the style names- so loading a new ressource dic would be much easier...
    • Edited by Tommyyy Friday, April 25, 2008 8:22 AM changes
    Friday, April 25, 2008 8:11 AM