Solved

Gridview item highlight on mouse hover in UWP

Posted on 2016-08-31
2
122 Views
Last Modified: 2016-09-03
Hello,

My UWP project contains a gridview. Is there anyway to highlight gridview items like a little pop on mouse hover? I can't seem to find a way to do it.. Please help.

Thanks and regards.
0
Comment
Question by:Soumen Roy
2 Comments
 
LVL 43

Accepted Solution

by:
zephyr_hex (Megan) earned 500 total points
ID: 41778266
I'm not exactly sure what you mean by "highlight like a pop", but I'll give you a few options.

GridView renders as an HTML table.  You can use CSS to achieve your mouseover effect.

This will enlarge the text inside a cell:
table td:hover {
  font-size: 3em;
}

Open in new window


This will change the background color inside a cell:
table td:hover {
  background-color: purple;
}

Open in new window


Here is a Fiddle Demo.
0
 

Assisted Solution

by:Soumen Roy
Soumen Roy earned 0 total points
ID: 41782606
The code is in xaml and c#.. I found my way around though.. Thank you..
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question