开发者

No generic RoutedEventHandler in WPF?

开发者 https://www.devze.com 2023-01-23 19:14 出处:网络
Anybody knows the point of not having a generic RoutedEventHandler? We already have EventHandler<> which is great, why force devs to write their own custom routed e开发者_JS百科vent handlers?Routed

Anybody knows the point of not having a generic RoutedEventHandler? We already have EventHandler<> which is great, why force devs to write their own custom routed e开发者_JS百科vent handlers?


RoutedEventHandler is equivalent to EventHandler<RoutedEventArgs>, so EventHandler<T> is enough for routed events.

0

精彩评论

暂无评论...
验证码 换一张
取 消