Tag: mouseleftbuttondown

wpf Button.MouseLeftButtonDown根本不起作用

我试图了解MouseLeftButtonDown如何工作,但直到现在还没有。 当我点击按钮时,没有任何内容。 代码背后是: private void sss_MouseDown(object sender, MouseButtonEventArgs e) { MessageBox.Show(“3 ->>>>>” + ((Control)sender).Name); }