如何在Win8中使用BringIntoView

时间:2014-03-02 12:33:14

标签: c# windows-runtime scrollviewer

给出ItemsControl内的项目索引,我试图使用BringIntoView - >

将其显示在视图中
var container = theItemsControl.ItemContainerGenerator.ContainerFromIndex(index) as Control;
if (container != null)
  container.BringIntoView();

这适用于WPF,但不适用于Win8 - 缺少方法吗?还有其他方法可以达到这个效果吗?

0 个答案:

没有答案