`untyped_event` and `typed_event` do not work for events that don't derive from `EventHandler` or `TypedEventHandler` (eg `Windows.UI.Xaml.Data.CurrentChangingEventHandler`) #354
untyped_event and typed_event require events that derive from EventHandler or TypedEventHandler respectively. However, there are a fair number of events that do not derive from these classes. For example, PropertyChangedINotifyPropertyChanged (which, admittedly, can be implemented via other WIL helpers) and Windows.UI.Xaml.Data.CurrentChangingEventHandler.
We should support wil::custom_event for events that use custom handlers/delegates.
untyped_event
andtyped_event
require events that derive fromEventHandler
orTypedEventHandler
respectively. However, there are a fair number of events that do not derive from these classes. For example,PropertyChanged
INotifyPropertyChanged
(which, admittedly, can be implemented via other WIL helpers) andWindows.UI.Xaml.Data.CurrentChangingEventHandler
.We should support
wil::custom_event
for events that use custom handlers/delegates.