Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit ImplicitStyleManager + PRISM (how to address Theme.xaml in Module)
1 replies. Latest Post by Mog Liang - MSFT on August 5, 2009.
(0)
Christia...
Member
8 points
20 Posts
07-29-2009 6:26 PM |
Hi,
the question refreshingly short: I have a working ImplicitStyleManager solution by placing the Theme.xaml in the Shell project.
But thats not very nice, I want to put it into a module. How do I adress this, how can I tell the ImplicitStyleManager where and how to look?
Currently I am simply using:
<StackPanel Theming:ImplicitStyleManager.ResourceDictionaryUri="Theme.xaml" Theming:ImplicitStyleManager.ApplyMode="Auto">
It should propably look somehow like this:
<StackPanel Theming:ImplicitStyleManager.ResourceDictionaryUri="ModuleAName/Theme.xaml" Theming:ImplicitStyleManager.ApplyMode="Auto">
Thanks for any help,
Chris
EDIT: Code solution can be found here
Mog Lian...
All-Star
15894 points
1,541 Posts
08-05-2009 2:16 AM |
Suppose the theme file is in assembly "AssemblyB", then you could refer to this theme by this uri (should set theme file build-action to Resource)
<Grid x:Name="LayoutRoot" theming:ImplicitStyleManager.ApplyMode="Auto" theming:ImplicitStyleManager.ResourceDictionaryUri="/AssemblyB;component/[themefilepath]">
Thanks,