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

[Solved] Customizing colors using Named Brushes?

3 Answers 149 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mikael
Top achievements
Rank 1
Mikael asked on 22 Apr 2013, 04:22 AM
The documentation shows the brushes which affect the RadDataGrid. But how can I change these? For example, if I want to customize the TelerikGridHeaderBackgroundBrush, how do I do it?

3 Answers, 1 is accepted

Sort by
0
Mikael
Top achievements
Rank 1
answered on 22 Apr 2013, 04:27 AM
Ok, that wasn't hard. The solution is to add a line like this into App.xaml.cs:

            <SolidColorBrush x:Key="TelerikGridHeaderBackgroundBrush" Color="Green"></SolidColorBrush>

0
Israel Bronca
Top achievements
Rank 1
answered on 08 Oct 2014, 10:40 PM
Hi, how i can change the color of TelerikGridHeaderBackgroundBrush by code?, i try 
SolidColorBrush solidColorBrush = (SolidColorBrush)Application.Current.Resources["TelerikNumericBoxBorderBrush"];
solidColorBrush.Color = Windows.UI.Colors.Yellow;

but not change.
0
Dimitrina
Telerik team
answered on 13 Oct 2014, 11:04 AM
Hi Israel,

More information about changing a specific brush  you can find in our documentation.

Please find an attached project that demonstrates this scenario.

I hope this helps. Let us know if you have further questions.


Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid for XAML
Asked by
Mikael
Top achievements
Rank 1
Answers by
Mikael
Top achievements
Rank 1
Israel Bronca
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or