Search code examples
uwpwinui-3c++-winrt

WinUI3 ListView InsertionMark functionality with C++/WinRT


Is there a function similar to InsertionMark in WinUI3/UWP?

The function should be able to retrieve the place(index) in a ListView where an object is dropped. enter image description here

In this image I'm dragging an item from List2 to List1.


Solution

  • The WinUI-Gallery sample shows a workaround, which finds the index based on the calculation of the coordinate of the dragged item and item height.

    enter image description here