WPF中没有通用的RoutedEventHandler?

时间:2010-11-04 19:41:03

标签: .net wpf

有人知道没有通用的RoutedEventHandler吗?我们已经有了EventHandler<>这很棒,为什么强迫开发人员编写自己的自定义路由事件处理程序?

1 个答案:

答案 0 :(得分:6)

RoutedEventHandler相当于EventHandler<RoutedEventArgs>,因此EventHandler<T>足以用于路由事件。