Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 81910

MVVM method to make ScrollView scroll to bottom?

$
0
0

Is there a proper MVVM way to force a scroll view to scroll to the bottom? I know ScrollView has a ScrollToAsync(...); method but using MVVM dictates you shouldn't call methods in the code behind. Also you shouldn't have references to UI in the View Model so I can't call ScrollToAsync there since I would need a reference to the ScrollView. There doesn't seem to be a property on ScrollView that indicates it's scroll position. So what is the most correct way to force the scroll view to scroll to the bottom?


Viewing all articles
Browse latest Browse all 81910

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>