59

Is there a way that I can let mouse events pass through to controls behind?

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
Jordan
  • 9,642
  • 10
  • 71
  • 141

2 Answers2

116

Sure, just set IsHitTestVisible="False" on the control. Mouse events will pass through it.

RJFalconer
  • 10,890
  • 5
  • 51
  • 66
Rachel
  • 130,264
  • 66
  • 304
  • 490
2

I usually solve these kind of issues by adding handlers of child controls to the parent at construction. This way the 'click'-event for example activates a method that raises the 'click'-event of the parent.

Geoffrey
  • 956
  • 1
  • 10
  • 16