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

Changing "selected item" color only

5 Answers 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michel
Top achievements
Rank 1
Michel asked on 17 Aug 2011, 09:17 PM
We decided to use the Vista style since it is the closest to what we wanted.
The only thing we need to change is the selection/hover color in all controls...
Where do I start ? I did not find clear info on how to do this...
Thanks !

5 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 18 Aug 2011, 06:53 AM
Hi Michel,

You may edit the template of the GridViewRow and modify the elements you want. You may refer to this and this articles for a reference. Still, in case you need any further assistance, do let us know. 

Best wishes,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Michel
Top achievements
Rank 1
answered on 18 Aug 2011, 02:01 PM
Thanks Maya,

Unfortunately the articles you mention are the documentation I did not find clear on how to do this !

First, I do not have Blend installed on my computer.

Where does these resources ( "ItemOuterBorder_Over", "ItemBackground_Over" ) comes from ?

What is the resource I have to link to to be able to access this ?

Is there a list of all the parameters we can modify ?

Thank you,

Michel
0
Vanya Pavlova
Telerik team
answered on 18 Aug 2011, 02:19 PM
Hi Michel,

 
The previously referenced article demonstrates how to modify the background of a row, when it enters a particular state.  If you take a look at the default template of GridViewRow, you may see different Border elements which appeared in the corresponding state.
The referred resources ItemOuterBorder_OverItemBackground_Over are used to paint the outer border and the background of a row, when the mouse is over it. The same is valid for the resources named ItemOuterBorder_SelectedItemBackground_Selected which are used to paint the outer border and the background of a row, when it is being selected. Following this logic you may modify the brushes for the rest RadGridView's parts in their particular state. As I can understand you want to modify these effects in all RadControls/WPF. For that purpose you should create your own custom theme based on Vista and modify the resources you need from there. From the following forum thread you may download a runnable project which demonstrates how this can be achieved. For those clients who do not use Microsoft Expression Blend we offer our themes as separate projects. You may access the xaml files for all themes from the Themes folder of your personal installation. 



Regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Michel
Top achievements
Rank 1
answered on 18 Aug 2011, 02:51 PM
Thank you Vanya!

I am starting to see the light at the end of the tunnel !

Unfortunately the link to your article is broken in the post you mentionned.

I found the Vista theme files in the the Telerik install folder. The key here is the folder name, I think for this to work ?

If I want to create my own style based on Vista, I copy the files in Vista in a folder named MyStyle under the Themes folder of my application. And same thing for subfolder Vista -- renamed MyStyle also... Right ?

Thanks again for the help !

Michel
0
Vanya Pavlova
Telerik team
answered on 18 Aug 2011, 02:58 PM
Hello Michel,

 
I am attaching you the project from the previously referenced thread. Indeed you are right - the WPF link is broken and you may use the Silverlight one:

http://www.telerik.com/help/silverlight/common-styling-apperance-themes-custom-theme-project-telerik-approach.html

The differences between WPF/Silverlight are pretty small and I would suggest you to use the WPF project for further reference. 


All the best,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Michel
Top achievements
Rank 1
Answers by
Maya
Telerik team
Michel
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or