Changing "selected item" color only

6 posts, 0 answers
  1. Michel
    Michel avatar
    39 posts
    Member since:
    Jul 2011

    Posted 17 Aug 2011 Link to this post

    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 !

  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 18 Aug 2011 Link to this post

    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 >>

  3. Michel
    Michel avatar
    39 posts
    Member since:
    Jul 2011

    Posted 18 Aug 2011 Link to this post

    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
  4. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 18 Aug 2011 Link to this post

    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 >>

  5. Michel
    Michel avatar
    39 posts
    Member since:
    Jul 2011

    Posted 18 Aug 2011 Link to this post

    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
  6. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 18 Aug 2011 Link to this post

    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 >>

Back to Top