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
Proposal: Expose a method in ListViewBase that allows scrolling to a specific item using the item's index.
Summary
There should be a method in ListView that can scroll items into view by their index. Currently there is ScrollIntoView(object item) that accepts item itself to bring into view. This method isn't useful when there are duplicate items in the ItemsSource. It only brings first matching index to the view.
To bring the items into view by calling ScrollIntoView(object item), the internal implementation uses item's index.
Proposal: Expose a method in ListViewBase that allows scrolling to a specific item using the item's index.
Summary
There should be a method in ListView that can scroll items into view by their index. Currently there is
ScrollIntoView(object item)
that accepts item itself to bring into view. This method isn't useful when there are duplicate items in the ItemsSource. It only brings first matching index to the view.To bring the items into view by calling
ScrollIntoView(object item)
, the internal implementation uses item's index.microsoft-ui-xaml/src/dxaml/xcp/dxaml/lib/Selector_Partial.cpp
Line 3176 in 66a7b0a
This method accepts the item's index rather than the item itself. It seems possible to expose a method like
ScrollIntoView(int index)
inListViewBase
.Rationale
ListViewBase
to scroll duplicate items into view.Scope
ListViewBase
by using it's index.The text was updated successfully, but these errors were encountered: