Wpf app with Noesis theme looks different as in xamltoy
Posted: 19 Aug 2024, 20:42
I created a dummy WPF application (.net framework 4.8 )
Nuget package was installed: Noesis.GUI.Extensions (3.0.30.13778)
Referenced the theme with the pack-uri
I use for testing the sample code of Xamltoy "Noesis Theme" sample:
The theme looks like it's only partially applied.
Focusing for example only in the resource Brush.Window.Background, on the editor preview, it shows like it will be a dark color, but if you select the static resource and go to its source it shows it should be a white SolidColorBrush.
The unexpected color showing into the xaml preview on the left looks like it is matching what is shown when you launch the application
Hardcoding the background to be white improves the situation a little but does not solve the issue at all, the colors do not match at all the equivalent Theme sample in xaml toy
What can i do to address this issue?
Note: LightBlue looks much better even without the background hack ( i guess the default theme of xamltoy is LightBlue). Maybe there is some specific issue with DarkBlue. But still, why does the DarkBlue theme, look off?
Nuget package was installed: Noesis.GUI.Extensions (3.0.30.13778)
Referenced the theme with the pack-uri
Code: Select all
<Application.Resources>
<ResourceDictionary Source="pack://application:,,,/Noesis.GUI.Extensions;component/Theme/NoesisTheme.DarkBlue.xaml" />
</Application.Resources>
The theme looks like it's only partially applied.
Focusing for example only in the resource Brush.Window.Background, on the editor preview, it shows like it will be a dark color, but if you select the static resource and go to its source it shows it should be a white SolidColorBrush.
The unexpected color showing into the xaml preview on the left looks like it is matching what is shown when you launch the application
Hardcoding the background to be white improves the situation a little but does not solve the issue at all, the colors do not match at all the equivalent Theme sample in xaml toy
What can i do to address this issue?
Note: LightBlue looks much better even without the background hack ( i guess the default theme of xamltoy is LightBlue). Maybe there is some specific issue with DarkBlue. But still, why does the DarkBlue theme, look off?