WPF FrameworkElement not receiving Mouse input
问题 Trying to get OnMouse events appearing in a child FrameworkElement . The parent element is a Panel (and the Background property is not Null). class MyFrameworkElement : FrameworkElement { protected override void OnMouseDown(MouseButtonEventArgs e) { // Trying to get here! base.OnMouseDown(e); } } public class MyPanel : Panel { protected override void OnMouseDown(MouseButtonEventArgs e) { // This is OK base.OnMouseDown(e); } } OnMouse never gets called, event is always unhandled and Snoop