how to get ScrollVIew Height

DONG-ANKANGDONG-ANKANG USMember ✭✭
<ScrollView x:Name="FullScroll" Orientation="Vertical" VerticalOptions="FillAndExpand">
     <StackLayout x:Name="SLO" Spacing="20">
         <Grid x:Name="Grid1" HorizontalOptions="FillAndExpand">
        </Grid>
        <Grid x:Name="Grid2" HorizontalOptions="FillAndExpand">
            <StackLayout x:Name="smallStack" Orientation="Vertical" Spacing="20" VerticalOptions="FillAndExpand">
            </StackLayout>
        </Grid>
    </StackLayout>
</ScrollView>

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

Answers

Sign In or Register to comment.