Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
283 views
in Technique[技术] by (71.8m points)

c# - How to attain virtualization in listbox with different layouts of Windows Phone App

I have a List box with different user controls in WP7 app. How should I apply virtualization with Virtualization Mode as "recycling". Because when I applied the results are not smooth. There seem to be a jerk while scrolling. In Android, for the same scenario the User Controls will be tagged their recycling is handled preoperly since they are perfectly distinguished and here any such option is not given.

Any idea how to handle this scenario?

I tagged silverlight and c# becuase WP7 has both sides when adding any such properties.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The behaviour you see is due to the items in the list being of different heights. This causes the list to constantly need to remeasure the contents and the scroll offsets become incorrect as items are removed from the list, hence the jumpiness.

Your best bet for smooth scrolling is to use items of the same height or not use virtualisation.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...