Change color on selected row, Windows8 theme

4 posts, 0 answers
  1. Kennet
    Kennet avatar
    104 posts
    Member since:
    Jun 2009

    Posted 27 Sep 2013 Link to this post

    Hi,

    How do I change the color of my selected row? I use Windows8 theme. I spent lots of time searching without any luck...

    Please help me.

  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 27 Sep 2013 Link to this post

    Hi Kennet,

    If you want to modify the appearance of the selected row, you can predefine its template. There you should modify the Border element named Background_Selected in the way you need. I can suggest you to check this help article for a reference. If you cannot extract the template of the GridViewRow with MS Blend, then you can find it locally inside the Themes folder, the full path would be something like so:
    C:\Program Files (x86)\Telerik\RadControls for Silverlight Q2 2013\Themes\Windows8\Themes\Telerik.Windows.Controls.GridView.xaml. Inside the xaml file you will find all the control templates. 


    Regards,
    Yoan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Kennet
    Kennet avatar
    104 posts
    Member since:
    Jun 2009

    Posted 27 Sep 2013 Link to this post

    Hi,

    Can you please provide me with a code example? I don't have access to Blend.

    Thanks!
  5. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 30 Sep 2013 Link to this post

    Hi Kennet,

    Actually, you can find the template locally, inside the Themes folder, the full path would be something like so: C:\Program Files (x86)\Telerik\RadControls for Silverlight Q2 2013\Themes\Windows8\Themes\Telerik.Windows.Controls.GridView.xaml. Inside the xaml file you will find all the control templates. However, I have attached a sample project showing you the approach.

    Regards,
    Yoan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top