How to use ScrollView in Xamarin.Forms

Xamarin.Forms
img_xamarin

Scroll View is used for displaying content more than the size of the screen. It can contain all of the other UI elements like image views, labels, text views and even another scroll view itself.

In this tutorial we are going to create a app that uses ScrollView in it and can be used in iOS and Android.

Let’s Start:

Create a new Solution and give it name “ScrollViewXamarinForms”.
Add a ContentPage and name it as “ScrollViewPage” and set NavigationPage to it.

Now in “ScrollViewPage”:

We just simply add Buttons in the ScrollView and pass this ScrollView to Content that’s it.
Now try to build and run the app:

For iOS:

xf9.1

For Android:
xf12.2

If you like this tutorial then you can download full copy of the code from github

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">