views:

38

answers:

1

I am using Silverlight 4.0

What is happening is that the ScrollViewer will only scroll when one hovers over controls like textbox, treeviews, etc.

If the mouse is over non control objects (like grids) then the mousewheel scrolling doesn't work.

Is this normal behavior?

+4  A: 

Give the ScrollViewer a background. If the background is transparent it will not catch any mouse events.

This is true with all controls. If you are trying to catch mouse events the control must have a background or the controls below it will receive the mouse events.

Stephan
Perfect! Adding a background solved the problem.
Oliver