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
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.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
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
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_Over, ItemBackground_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_Selected, ItemBackground_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.
Vanya Pavlova
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
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
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.
Vanya Pavlova
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>