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, PropertyChanged
INotifyPropertyChanged
(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.