Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify the item's style in gridview when the pointer over it

I use gridview to list all the items, I want to realize an effect that when the pointer over an item, it appears as a style and after the pointer moved off, the style disappear, any one can provide me some suggestion? Thanks

like image 427
James Avatar asked Dec 19 '25 03:12

James


1 Answers

You want to change the ItemContainerStyle of the grid. To do this do the following:

Right click on the GridView on the left and select Edit Additional Templates, Edit Generated Item Container (ItemContainerStyle), Edit a Copy.

In the style that gets generated you'll find a VisualStateGroup called "Hover". These are the changes that take place to the container when a user is hovering over an item.

like image 85
Faster Solutions Avatar answered Dec 20 '25 21:12

Faster Solutions



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!