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

How to Change DataGrid Accent Color?

5 Answers 169 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
urja
Top achievements
Rank 1
urja asked on 01 Dec 2018, 08:09 AM

I want to change Accent Color of RadDataGrid which is blue, on changing SystemAccentColor datagrid's accent color is not changing. 
How to Change that color mentioned in ScreenShot, wherever blue color is used throughout all the DataGrid's operations.

 

Thank you.

5 Answers, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 03 Dec 2018, 06:47 PM
Hi Urja,

You can find this and other general DataGrid information in the UI for UWP documentation. In the DataGrid section, you will see a node titled "Styling" in which you'll find a DataGrid Telerik Named Brushes article.

Here's a screenshot to guide you:




IMPORTANT:

Please read all of those articles carefully as the steps to override the Telerik Names Brushes must be followed carefully. You need to first have an understanding of how to use Telerik Named Brushed first, then you can know how to override the control's specific brush names.

1 - Read the main Telerik Named Brushes article.
2 - Read the specific control's Telerik Named Brushes article.

Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
urja
Top achievements
Rank 1
answered on 04 Dec 2018, 05:17 AM

Thank you for your support, but I have one question related to these brushes which I am not able to understand, from where can I change the accent color of Telerik at one place which overrides the accent brush wherever used in all the Telerik Controls, just like UWP has its theme color changed on overriding only the SystemAccentColor of the application. Similar way I want to override at only one place which changes Blue Color of Telerik in all the controls wherever used.

Thanks.

0
Lance | Manager Technical Support
Telerik team
answered on 04 Dec 2018, 04:16 PM
Hi Urja,

Thank you for the explanation that you're looking for a brush like SystemAccentColor. There is no single accent brush that is used across all the controls. You'll need to use that specific control's Telerik Named Brushes.

To explain it better, here is a quote from the Telerik Named BRushed article, witht he important part highlighted:

Telerik Named Brushes is a resource naming convention used throughout Telerik UI components. Each brush used in the default ControlTemplates of the controls is uniquely named. This allows developers to easily change the default look of a control without the need to extract and customize the whole ControlTemplate. The benefit of this convention shines when the colors of the default themes (e.g. axis or label color of a chart, hover background color of a radial menu item ...) should be customized. The combination of such convention and the ThemeResource markup extension provides developers access to a flexible customization approach. Following this approach, they can apply the required changes to all controls in an application. The names of the resources used in a UI component are listed in an article named Telerik Named Brushes under the Styling folder of that specific component (e.g. RadDataGrid, RadNumericBox, RadRadialMenu…)

Because these brushes are uniquely named, there is no common brush that spans across all the controls. I hope this helps answer your question.

Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
urja
Top achievements
Rank 1
answered on 05 Dec 2018, 05:14 AM

Yes, this helped. Thank you very much.

Do you plan to have that common brush feature for Telerik controls in future updates or releases?? If Yes, then approximately when it would be available?

 

Thanks.

 

 

0
Lance | Manager Technical Support
Telerik team
answered on 05 Dec 2018, 07:27 PM
Hello Urja,

We don't have any plans to move in this direction because the intention was to allow for independent styling of the controls. If you would like the development team to consider adding this feature, you can add an issue in the UI for UWP repo on GitHub.

Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataGrid
Asked by
urja
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
urja
Top achievements
Rank 1
Share this question
or