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

Ugly color for GridViewHyperlinkColumn links

1 Answer 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kristoffer
Top achievements
Rank 1
Kristoffer asked on 14 Mar 2013, 04:18 PM
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.

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 18 Mar 2013, 09:33 AM
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.

Tags
GridView
Asked by
Kristoffer
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or