title: How to detect if the scroll viewer reaches bottom in winrt
body: <p>I'm wondering what's the best approach to detect if a ScrollViewer reaches the bottom, right etc.</p>
  
  <p>I think I can achieve that by using both PointerWheelChanged for mouse and ManipulationDelta for touch. In these event handlers, I can record the HorizontalOffset to find out when will the scroller reach the end. But I think there could be a better way to do it.</p>
  
  <p>I've found this <a href="http://blogs.msdn.com/b/slmperf/archive/2011/06/30/windows-phone-mango-change-listbox-how-to-detect-compression-end-of-scroll-states.aspx">article</a>. But the compression visual states seem not working in winrt. The CurrentStateChanging event method is not getting called. </p>
  
  <p>I also checked another <a href="http://mobile.dzone.com/articles/winrt-xaml-automatically">article</a>. But it just works for scroll bar, not a generic approach.</p>
  
  <p>Anyone knows what's the best way to solve this problem?</p>