I am looking for a way to know when a user is scrolling the listbox on my Windows Phone 7 application up or down.
The closest I can come to is:
private double fDown = 0.6;
private void buddyList_ManipulationCompleted(object sender, ManipulationCompletedEventArgs e)
{
var sView = e.ManipulationContainer as ScrollViewer;
double lBox = 25 - fDown;
double nBox = 25 - sView.VerticalOffset;
if (nBox > lBox)
MessageBox.Show("up!");
else
MessageBox.Show("down!");
}
However, that doesn’t work correctly. I need to know when it’s at the bottom of the listbox compared to scrolling through the middle of it.
When it’s at the bottom of the listbox I want to enable a timer to keep it at the bottom constantly. Or is there another way to keep it at the bottom constantly…? Is there anyway I can do this?
Thanks.
I talked to a friend and he gave me this as an answer (to anyone who looks in the futue):
Thanks.