Open xperiandri opened 3 years ago
Thanks for the report.
It is not yet implemented: https://github.com/unoplatform/uno/blob/74b6e9fa21c94fb077c475026dd235491cdd80bd/src/Uno.UI/Generated/3.0.0.0/Windows.UI.Xaml.Controls/ListViewBase.cs#L327-L331
Will this mean that ListViewPersistenceHelper.SetRelativeScrollPositionAsync will be supported?
In fact this property specifically isn't implemented (for any platform): https://github.com/unoplatform/uno/blob/a1787131bbdaf0a0c97ce57860b1f28a607d5c26/src/Uno.UI/Generated/3.0.0.0/Windows.UI.Xaml.Controls/ItemsStackPanel.cs#L12-L23
Will this mean that ListViewPersistenceHelper.SetRelativeScrollPositionAsync will be supported?
@jasonxz That seems to be a different feature, please create a new issue for it if you'd like to see it implemented.
I am working on a macOS project using UNO platform and ListViewBase.ScrollIntoView is unfortunately also not implemented.
Current behavior
If ListView has items enough to scroll, it is scrolled to the very bottom and the last item is selected. Then if ListView size makes vertically smaller then the last item is not kept in the view.
Expected behavior
The selected item is always kept in view. The same as it happens in UWP
How to reproduce it (as minimally and precisely as possible)
Create ListView. Set ItemsPannel as follows:
Add items to it. Select the last item. Make window smaller so that it cannot display all the items.
Workaround
Not found
Environment
Nuget Package:
Nuget Package Version(s):
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?