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,

 

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. His latest book, Building APIs with .NET will be released early in 2025. Liberty is a Senior SW Engineer for CNH and he was 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 Microsoft MVP.
This entry was posted in Xamarin and tagged , , . Bookmark the permalink.