Why do panel elements receive only mouse or stylus events if a background is set?

According to http://msdn.microsoft.com/de-de/library/system.windows.controls.panel.background.aspx

Panel items do not receive mouse or stylus events unless a background is defined. If you need to handle mouse or stylus events, but don’t want to use the background for your panel, use Transparent.

So my question is: why? Does anyone know the reason for this behavior?

+3
source share
1 answer

The reason is that the input is based on Hit Testing in Visual Layer . See especially the Hit Testing Support section.

(.. ). RectangleGeometry , Background.

+3

All Articles