ScrollViewer将项目滚动到中心

时间:2018-11-19 14:57:59

标签: c# uwp center scrollviewer custom-scrolling

在C#UWP中,我需要将项目带入ScrollViewer / ListView的中心,而不是顶部或底部。

我使用以下代码进行滚动:

listViewMain.ScrollIntoView(ItemsList[50]);

任何扩展方法或其他方法可以实现这一目标吗?

0 个答案:

没有答案
相关问题