No overload for 'OnStartup' matches delegate 'System.Windows.StartupEventHandler'

来源:互联网 发布:测bpm软件 编辑:程序博客网 时间:2024/06/06 00:39
No overload for 'OnStartup' matches delegate 'System.Windows.StartupEventHandler'

今天wpf工程的App.xaml爆出这个问题, 明明cs理由事件处理函数OnStartUp,却无法编译。
原因是App.xaml声明的类名和App.xaml.cs中的类名不同。

修改一直, 并确认Event Hanlder存在。