当我们使用 GetType(RoutedEventHandler) 或 GetType(RoutedEventArgs) 注册自定义路由事件时有什么区别??
例1:
Public Shared ReadOnly TextChangedEvent As RoutedEvent = EventManager.RegisterRoutedEvent("TextChanged", _
RoutingStrategy.Bubble, GetType(RoutedEventArgs), GetType(MyCustomTextBlock))
例2:
Public Shared ReadOnly TextChangedEvent As RoutedEvent = EventManager.RegisterRoutedEvent("TextChanged", _
RoutingStrategy.Bubble, GetType(RoutedEventHandler), GetType(MyCustomTextBlock))