Forum Xamarin.Forms

how to get ScrollVIew Height

<ScrollView x:Name="FullScroll" Orientation="Vertical" VerticalOptions="FillAndExpand">
     <StackLayout x:Name="SLO" Spacing="20">
         <Grid x:Name="Grid1" HorizontalOptions="FillAndExpand">
        <Grid x:Name="Grid2" HorizontalOptions="FillAndExpand">
            <StackLayout x:Name="smallStack" Orientation="Vertical" Spacing="20" VerticalOptions="FillAndExpand">

I insert grid in "smallStack".
but ScrollView's height is short a little.
So, I want get ScrollView's height and increase a little.
but if I use FullScroll.HeightRequest or FullScroll.Height,
return only -1.
FullScroll.HeightRequest+= value is same, only set value size, not add FullScroll's Height.

how do I set this ScrollView's Size?

Best Answer


Sign In or Register to comment.