Wednesday, March 16, 2011

I am not receiving Clicks in the blank area of a StackPanel

I created a panel with two controls in it: textblock and image. But the panel only accepts clicks or mouse over the text and the image but any blank area around them in the panel is ignored.

Solution: change your panel's background to Transparent. This way you will keep your panel transparent and force receiving mouse events on your panel.

No comments: