This is a migrated thread and some comments may be shown as answers.

Change Fluent themes accent color

1 Answer 602 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Moritz
Top achievements
Rank 1
Moritz asked on 09 Nov 2018, 10:32 AM

Hi,

Is it possible to change the AccentColor in XAML?

I want to do something like this, but in a global style.xaml:

FluentPalette.Palette.AccentColor = (Color)ColorConverter.ConvertFromString("#FF0078D7");
FluentPalette.Palette.AccentFocusedColor = (Color)ColorConverter.ConvertFromString("#FF4CB0FF");
FluentPalette.Palette.AccentMouseOverColor = (Color)ColorConverter.ConvertFromString("#FF008EFF");
FluentPalette.Palette.AccentPressedColor = (Color)ColorConverter.ConvertFromString("#FF0063B1");

Best regards,

Moritz

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 14 Nov 2018, 09:13 AM
Hello Moritz,

Thank you for the provided code snippet.

Currently there's no way to modify the palette colors via XAML, however, you can vote for the following feature request in our feedback portal: Themes - Enable resources modification through XAML regarding such support.

For the time being, you can only modify the theme's settings in code. However, if you want to do it for the whole application, you can set the corresponding settings in the App.xaml.cs file.

Hope you find this helpful.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Moritz
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or