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

ScrollView in Xaml

$
0
0

Im trying to make a page using xaml but I having some problems. I want it to have a buttom fixed at the top and a button fixed at the bottom and a scrollview in the middle where I can scroll between a lot of labels. How can I do that. Here is the code that I wrote:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
                       xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                       x:Class="App2.LoginView">
    <StackLayout >
        <Button  Text="Login" Clicked="OnButtonLoginClicked" />
        <ScrollView  Orientation = "Vertical" VerticalOptions="StartAndExpand">
            <StackLayout  VerticalOptions="StartAndExpand">
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="hola" />
                <Label Text="chau" />
            </StackLayout>
        </ScrollView>
        <Button  Text="Login" Clicked="OnButtonLoginClicked" />
    </StackLayout>
</ContentPage>

Viewing all articles
Browse latest Browse all 77050

Trending Articles