Manoj Savalia
Manoj Savalia

Reputation: 1402

Apply Themes dynamically for UserControl in Silverlight 4.0

I want to apply themes dynamically for UserControls in silverlight.

I have created 3 projects.

1) Contains Themes and Images

2) Contains User Controls

3) My project where I have used my themes and User controls

How can I change themes dynamically for user control?

Please suggest me a way.

Upvotes: 1

Views: 462

Answers (1)

Martin Hollingsworth
Martin Hollingsworth

Reputation: 7329

Dynamically apply and change Theme with the Silverlight Toolkit - Laurent Duveau describes a solution that you could use along with Creating Packs from the Silverlight Application Themes.

Note that these techniques are specific to Silverlight 4, which now supports Implicit Styles. Much of the existing content on the Internet regarding Silverlight and Themes, describe solutions using ImplicitStyleManager (still applicable to Silverlight 3).

Upvotes: 1

Related Questions