Declined
Last Updated: 06 Oct 2021 08:39 by ADMIN
ADMIN
Dilyan Traykov
Created on: 22 Aug 2018 10:44
Category: UI for WPF
Type: Feature Request
12
Themes: Implement mechanism for setting the globally defined font and color palette settings also on a control level
Currently the palette of a theme can only be set for the entire application. Setting the palette per control instance should also be possible.
6 comments
ADMIN
Vladimir Stoyanov
Posted on: 16 Sep 2019 15:01
Hello,

Please, find a sample project attached which demonstrates how to change some palette settings for a given control. The approach for achieving this involves creating a helper class, which introduces attached properties for the palette settings that need to be changed. For the purposes of the example, three colors from the MaterialPalette are changed. When a given color is changed, a brush with the new color is merged into the Resources collection of the control. This brush will be applied down the element tree to all controls, which use it.

Note, that the sample project demonstrates the above mentioned approach for the Material theme, however it can be used with the other themes from the UI for WPF suite as well. 

I 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.
Attached Files:
Patrick
Posted on: 23 Jan 2019 16:40
Palette changes per control would be highly desirable! This would be an excellent way to custom color the UI per client, or even on the fly at runtime by the user as in changing to a light theme during the day and dark palette in the evening.
Please implement!
chris
Posted on: 06 Sep 2018 15:06
This would make the styling much more configurable and flexible. Thumbs on for this.
Avrohom Yisroel
Posted on: 06 Sep 2018 15:03
This would be an excellent idea!
Chava
Posted on: 02 Sep 2018 19:07
This would save so much time and code and fiddling with templates and styles for each control,  as we sometimes need multiple full copies of the code for each control to define different styles - this would simply allow us to define different colour palettes for each one.
Lenin
Posted on: 27 Aug 2018 09:47
It would be great if we get an option to adjust the opacity of themes using a property instead writing custom styles for UI for WPF.