Open hawkerm opened 3 years ago
I also can't as easily use the underlying DragStartingEventArgs
and DropCompletedEvents
as easily either, as OriginalSource
is set only and I guess generally set by the ListViewBase class?
@MikeHillberg seems like a good candidate to unseal?
KeyRoutedEventArgs
is the same (as pretty much every event args class).
Describe the bug This is the most recent example I have, but all the EventArgs classes being sealed and not having constructors is a big problem when trying to implement custom controls which follow the same API interface as built-in controls.
I'd like to re-use the
DragItemsStartingEventArgs
to implement my own pair ofDragItemsStarting/Completed
events on a custom view control which allows its items to be dragged.However, I can't use the same delegate and events as
ListViewBase
as the event args classDragItemsStartingEventArgs
is sealed and therefore I can't set the properties on it as there's no constructor with parameters.Expected behavior Able to use built-in event args classes and delegates to create controls with matching APIs to built-in controls.
Version Info WUX 19042 (but looks according to docs this is still the case in WinUI 3)
Additional context Related to #780