I want to change some controls to fluent.light style in the default fluent.dark style.
Load the Fluent.Dark when the program start.
MainWindow.xaml.cs
public
MainWindow()
{
FluentPalette.LoadPreset(FluentPalette.ColorVariation.Dark);
InitializeComponent();
}
However, some of the screens are bright, I would like to apply the Fluent.Light style to specific control.
(ex, Telerik controls and default controls(buttons etc))
Different styles have theme xaml. so I can overwrite them, but Fluent seems different.
When the entire style is defined, is there a way to change the control from Fluent.Dark to Fluent.Light in some UI groups (such as Grid)?
6 Answers, 1 is accepted
I also want to change some controls which is helpful to me. Do you find any solution? Please help me.
Thanks.
Currently, this is not supported. A palette can be set only globally. To achieve your requirement you will need to extract the style of the control that you want to use the light colors, and manually set its colors to whatever value you want.
There is also a feature request for allowing palette setting per control. You can find it in our feedback portal where you can track its status.
Regards,
Martin Ivanov
Progress Telerik
Thanks martin,
thnx but where do I find color palette? or Can I add my own color palette?\
thanks, san
https://www.kissanime.vip/
You can find the colors of each palette listed in each theme article that has palettes. For example, check the Fluent help article. You can change the palette colors by setting the corresponding properties of the palette object. For example:
FluentPalette.Palette.AccentColor = Colors.Red;
Regards,
Martin Ivanov
Progress Telerik