开发者

ScrollView not MouseWheel Scrolling when not over Control

开发者 https://www.devze.com 2022-12-29 23:18 出处:网络
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.

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.

开发者_StackOverflow

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

Is this normal behavior?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消