开发者

Mouse event not working in Silverlight Grid

I Have created a Grid (g1) with a TabControl (t1). t1's TabItem content has Grid (g2). g2 has another TabControl as t20,t21,t22 (vertical TabControl) and each t2 series TabItem h开发者_Go百科as another Grid (g3) .

The issue I'm having is that a mouse event is not working g3. The same function works when placed in g2.

I have tried placing a button instead of g3 and click event works, and if I add a button to g3, then the button click events work.

What could be causing the mouse event to not work?


You have not given any code, however, there is a very common 'gotcha' in Silverlight regarding mouse events. An element will not raise these events unless it has a background explicitly set. Set your Grid.Background to Transparent and hopefully your events will work.

(If that doesn't work, my net guess is Z-Index!)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜