Including Noesis Theme in a project
Hello, I am uncertain on how to successfully use themes. I added a button, check box, and text box but my window renders as if it has no styles. Just pink controls.
I tried adding a ResourceDictionary in my app.xaml:
<ResourceDictionary Source="/Noesis.GUI.Extensions;component/Theme/NoesisTheme.LightBlue.xaml"/>
I am trying to use the ApplicationFramework.
I tried adding a ResourceDictionary in my app.xaml:
<ResourceDictionary Source="/Noesis.GUI.Extensions;component/Theme/NoesisTheme.LightBlue.xaml"/>
I am trying to use the ApplicationFramework.
Re: Including Noesis Theme in a project
I believe the issue is related to Blend automatically adding this property to any control I insert onto my window:
Style="{DynamicResource TextBlockStyle1}"
Which ends up overriding the style and appearing pink.
Style="{DynamicResource TextBlockStyle1}"
Which ends up overriding the style and appearing pink.
-
sfernandez
Site Admin
- Posts: 2991
- Joined:
Re: Including Noesis Theme in a project
If you want to define local styles, you have to extend the theme styles (to include all the properties, like the Template, set by the theme).
This should fix your pink styles problem.
Code: Select all
<Style x:Key="ButtonStyle1" BasedOn="{StaticResource {x:Type Button}}">