I've created a gridview, when mouse goes over on it, the background color changes to purple, how can I stop this color change behaviour?
Asked
Active
Viewed 1,340 times
0
-
3http://steptodotnet.blogspot.com/2012/06/how-to-change-gridview-row-color-on.html – Soner Gönül Dec 29 '12 at 12:29
-
@SonerGönül thanks for your reply, could you please confirm the link? I couldn't open it. – James Dec 29 '12 at 12:40
-
2@James link works for me – GameScripting Dec 29 '12 at 12:41
-
1but the link is for ASP.net, question seems to refer to WinRT-XAML – Tilak Dec 29 '12 at 12:43
-
this seems like a dupe of your [question here](http://stackoverflow.com/questions/14071024/how-to-modified-the-background-of-selected-gridviewitem-in-gridview) to which I responded - did that suggestion not work? – Jim O'Neil Dec 29 '12 at 15:15
1 Answers
0
In WPF it is straightforward. You need to override SystemColors.HighlightBrushKey.
In Windows 8 Modern UI apps, this is little complex. It involves overriding the control template and changes in visual states using visual state manager. Solution is provided in this msdn forum question.