I have a ListBox that I've bound to a List of ordered times. When the ListBox loads I'd like to show the item that will be next at the top of the screen.
Is there a way to do this in WP7 using MVVM? I've looked around and there seems to be solutions for WPF but I can't seem to find any for WP7.
I can think of two ways of doing this:
ScrollIntoView
when the value changes (this method seems cleaner, but I'm not 100% sure it will work on WP7's Silverlight 3 runtime) It's worth noting that ScrollIntoView
only ensures the value is visible, not that it's at the top.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.