Daspien27
Topic Author
Posts: 2
Joined: 05 Jul 2021, 12:44

Including Noesis Theme in a project

08 Jul 2021, 19:05

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.
Screenshot 2021-07-08 125724.jpg
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.

Tags:
 
Daspien27
Topic Author
Posts: 2
Joined: 05 Jul 2021, 12:44

Re: Including Noesis Theme in a project

08 Jul 2021, 22:25

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.
 
User avatar
sfernandez
Site Admin
Posts: 2255
Joined: 22 Dec 2011, 19:20

Re: Including Noesis Theme in a project

09 Jul 2021, 12:11

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).
<Style x:Key="ButtonStyle1" BasedOn="{StaticResource {x:Type Button}}">
This should fix your pink styles problem.

Who is online

Users browsing this forum: No registered users and 1 guest