Ugly color for GridViewHyperlinkColumn links

2 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 14 Mar 2013 Link to this post

    When adding a GridViewHyperlinkColumn to a GridView I expect the links to adapt to the current theme. I'm currently using Expression Dark and the links are vivid blue. Not so nice...

    I consider this a bug. Your links should adapt to the current theme!

    I tried overriding the style...

    <Grid.Resources>
      <Style TargetType="{x:Type telerikGrid:HyperlinkButton}">
      <Setter Property="Foreground" Value="White" />
      </Style>
    </Grid.Resources>

    <telerik:GridViewHyperlinkColumn Header="Link" />

    Doesn't work.
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 18 Mar 2013 Link to this post

    Hi Kristoffer,

     

    In WPF it would be better to target Hyperlink rather than a HyperlinkButton in order to achieve the desired result, as shown below:


    <Style TargetType="{x:Type Hyperlink}">
     <Setter Property="Foreground" Value="White" />
     </Style>


    Will you please give it a try and let me know how it goes? 


    All the best,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top