ScrollTo in Xamarin.Forms ListView

Today we tackle another new feature in 1.3: ScrollTo.

This allows us to scroll to the beginning of a ListView or to the end or to a particular entry.  Let’s return to the grouping code we created here.  We’re going to make some minor changes to illustrate ScrollTo

To illustrate how this works, let’s add a button to the XAML which will trigger the scrolling,

The event handler is identified as GoToLastItem.  We’ll implement that in our code behind,

 

Unknown's avatar

About Jesse Liberty

Jesse Liberty has three decades of experience writing and delivering software projects and is the author of 2 dozen books and a couple dozen online courses. Liberty is a Senior AI Engineer at the University of Pittsburgh Medical Center, and was a Team Lead and Senior Software Engineer for various corporations, a Senior Technical Evangelist for Microsoft, a Distinguished Software Engineer for AT&T, a VP for Information Services for Citibank and a Software Architect for PBS. He is a 21 year Microsoft MVP.
This entry was posted in Xamarin and tagged , , . Bookmark the permalink.