我正在尝试添加一个处理程序,但是一旦我定位一个具有参数的方法,处理程序就会失败。这是简单的代码:
AddHandler App.Current.RootVisual.MouseLeftButtonUp, RootVisual_MouseLeftButtonUp
Private Sub RootVisual_MouseLeftButtonUp(ByVal sender As Object, ByVal e As MouseButtonEventArgs)
End Sub
这个错误不会让我建立。在查看示例时,我做对了。这是我得到的错误:
错误 3 未为“Private Sub RootVisual_MouseLeftButtonUp(sender As Object, e As System.Windows.Input.MouseButtonEventArgs)”的参数“e”指定参数。C:\TFS\ProjectCollection\ItemManagementTool\ItemManagementTool.ClientApplication\Views\MainMenu.xaml.vb 82 70 ItemManagementTool.ClientApplication
我收到“发件人”参数的类似错误。有任何想法吗?