You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Port the ListViewItemPresenter/GridViewItemPresenter drag visual (DragBackground, DragForeground, DragOpacity) #25922
area/listview 📃Categorizes an issue or PR as relevant to the ListView controlarea/porting 🖨️Categorizes an issue or PR as relevant for porting of WinUI codekind/enhancementNew feature or requestproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
The drag visual part of the ListViewItemPresenter / GridViewItemPresenter chrome, ported from WinUI. PR #25389 ports the chrome, but these properties are still marked [Uno.NotImplemented] because nothing reads them yet:
ListViewBaseItem.SetDragVisualCaptured wired to the drag start (ListViewBaseItem_Partial.cpp:2498). Uno has it ported (ListViewBaseItem.mux.cs), but nothing calls it, so the Dragging/DraggedPlaceholder/Reordering visual states can never be reached.
The chrome's drag layers, which paint with m_pDragBackground / m_pDragForeground (ListViewBaseItemChrome.cpp around lines 1319-1335).
The drag visual's opacity set from CListViewBaseItemChrome::GetDragOpacity() (ListViewBaseItemChrome.cpp:1882), the way ListViewBaseItem::StartDrag does (ListViewBaseItem_Partial.cpp:1776-1781).
Removing [Uno.NotImplemented] from the six properties, with runtime tests covering the dragged and placeholder states.
Why is this needed? 🤔
Apps that restyle drag feedback through these properties (ListViewItemDragBackground, ListViewItemDragThemeOpacity, etc.) see no effect today. Dragged items in a reorderable ListView/GridView also don't get WinUI's dragged/placeholder look.
For which platforms 📱💻🖥️
All (Skia)
Anything else we need to know? 💬
Follow-up to #25389 (ListViewItemPresenter/GridViewItemPresenter chrome port), raised in review. The surrounding code carries the matching TODO Uno markers in ListViewBaseItemChrome.h.mux.cs (the property readers are in #if false).
area/listview 📃Categorizes an issue or PR as relevant to the ListView controlarea/porting 🖨️Categorizes an issue or PR as relevant for porting of WinUI codekind/enhancementNew feature or requestproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
Activity