设置ManipulationMode =“Control”会导致滞后

时间:2011-11-09 16:09:05

标签: xaml windows-phone-7

我想检测ListBox的CompositeTransform的TranslateY。为此,需要设置ListBox ScrollViewer.ManipulationMode="Control"

但是,拖动列表框会导致延迟。怎么避免这个?

1 个答案:

答案 0 :(得分:0)

我建议您阅读ScrollViewer performance上的以下文章。

ScrollViewer.ManipulationMode的MSDN评论说

  

在Windows Phone OS 7.1中,可以使用ManipulationMode属性   指定大多数属性更新和事件关联的方式   滚动ScrollViewer得到处理。您可以指定该系统   将处理操作或您将处理   在控制层进行操纵。 在大多数情况下,要确保顺畅   滚动,你应该让系统处理操作,这   是默认行为

正如您所看到的,在设置ManipulationMode时,您不太可能获得平滑滚动和虚拟化。您究竟需要TranslateY的值是什么?