MaterialPalette ignores color changes

1 Answer 23 Views
Styling
ffunke
Top achievements
Rank 1
Iron
ffunke asked on 13 Dec 2024, 07:38 AM

Hi,

I have migrated a .NET 4.8 app to .NET 8.0. In the app I define some colors for the MarterialPalette in App.xaml.cs via

StyleManager.ApplicationTheme = new MaterialTheme();

MaterialPalette.Palette.PrimaryNormalColor = Colors.Red;

Long story short, when I use a Telerik control it ignores the changes done at the palette. 

I tried to create a small project to comprehend the problem, but unfortunately I was not able reproduce it on a simple basis.

So, my question is: Are there any konwn problems with the theming to take over changes that should appear globally?

 

Thanks in advance.

Stenly
Telerik team
commented on 13 Dec 2024, 10:41 AM

Regarding the question, this could occur when working with the RadSplashScreen control and changing the palette's properties prior to showing it on the OnStartup override of the App.xaml file. If this is the scenario on your end, the following article showcases how to work this behavior around:

Palette Property Changes not Applied When Open SplashScreen App OnStartup - Telerik UI for WPF

With this in mind, if the above scenario is not present on your end, could you share a bit more information about the controls that are used on your end and that are not affected by the above-shared change of the PrimaryNormalColor property? Aditionally, when are these changes performed?

This way, I can test it on my end and see if I will be able to reproduce this behavior.

1 Answer, 1 is accepted

Sort by
0
Accepted
ffunke
Top achievements
Rank 1
Iron
answered on 13 Dec 2024, 12:43 PM
Thanks for your help. It was indeed the SplashScreen.
Stenly
Telerik team
commented on 13 Dec 2024, 01:27 PM

I am happy to hear that the suggested article for the RadSplashScreen targets the unwanted behavior on your end and that you took the time to let me know. If any additional assistance regarding the palette is required, please let me know.
Tags
Styling
Asked by
ffunke
Top achievements
Rank 1
Iron
Answers by
ffunke
Top achievements
Rank 1
Iron
Share this question
or