Windows-Apps-Hub / UnitedSets

Bringing back Sets and Browser
https://www.microsoft.com/store/apps/9N7CWZ3L5RWL
MIT License
232 stars 10 forks source link

DragDrop InvalidCast fix for W10 #38

Closed mitchcapper closed 1 year ago

mitchcapper commented 1 year ago

Switch drag data to be stored in the Properties rather than datatype itself

On windows 10 19041 I am seeing https://github.com/microsoft/CsWinRT/issues/807 clearly drag drop must be fixed on W11 as I assume dragdrop works in app on some platform. This fix transitions keeping the dragdrop data as a format to be stored as a property. We are storing relatively little data so I do not see any downside to this transition.

Simplified some of the casting/conditionals as well.