Can anybody let me know how to synchronize mouse over activity in two gridview?
-
Dienstag, 6. März 2012 02:48
Hi!
I have to gridviews splitted by the gridsplitter in a grid.
When I move the mouse over the left girdview I got the background color changed as preset but the grid on the right has no change on the background.
Is there any way to make the background color synchronized?
Best regards
Joon
Alle Antworten
-
Mittwoch, 7. März 2012 00:18
Yes by binding you can bind the other gridview background color to the other one. You can do this in VS2010, click on the other gridview, then go to the properties page on the right. Find the background property and then set the binding to the element name of the other grid, and then to it's property Background.JP Cowboy Coders Unite!
- Als Antwort vorgeschlagen Mr. Javaman II Donnerstag, 8. März 2012 19:50
- Als Antwort markiert Kee PoppyModerator Freitag, 16. März 2012 02:55
-
Donnerstag, 8. März 2012 06:54
I am using gridview inside of the listview.
I want to make like "When I mouse over on the left side of the listview, right side listview background changes its color as the one changed on the left"
Thanks in advance.
joon
-
Donnerstag, 8. März 2012 11:18Moderator
Have you tried Javaman's suggestion?
Try binding the right side listview's background with the left side listview's background. Like this:
<ListView x:Name="lv2" Grid.Column="1" Background="{Binding ElementName= lv1, Path=Background}"
If this is not you want, please upload some schematic drawing here so that we can get your purpose.
Best Regards,
Kee Poppy [MSFT]
MSDN Community Support | Feedback to us
- Als Antwort vorgeschlagen Mr. Javaman II Donnerstag, 8. März 2012 19:50
- Als Antwort markiert Kee PoppyModerator Freitag, 16. März 2012 02:55

