DragItemsStartingEventArgs is sealed and doesn't provide public constructor #5475
Labels
area-Lists
ListView, GridView, ListBox, etc
feature proposal
New feature proposal
product-winui3
WinUI 3 issues
team-Controls
Issue for the Controls team
wct
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
The text was updated successfully, but these errors were encountered: