tags:

views:

96

answers:

2

I was wondering, what is the best way to capture a mouse Event inside of a wpf grid?

I wanted to Capture an event when the mouse wheel is either scrolled up or down in the grid.

I tried to create a custom grid, but that kind of didn't work.

Any ideas?

A: 

You can hook the MouseWheel event or, if you're inheriting, you can override the OnMouseWheel method.

Drew Marsh
A: 

I handled mouse event inside a grid by placing a blank Label inside so that it will expand through the Grid and then providing a handler to that.

viky