I tried this content with TwoWay mode.
I used ObservableCollection, when I modify the content is updated, but the scroll length is not updated.
Right Scrollbar is too long.
How can I update the scrollbar length?
<ScrollView BackgroundColor="LightGray" x:Name="InfoStack">
<StackLayout
BindableLayout.ItemsSource="{Binding Source={x:Static local:InfoHelpers.Ints}, Mode=TwoWay}">
<BindableLayout.ItemTemplate>
<DataTemplate>
<.../>
</DataTemplate>
</BindableLayout.ItemTemplate>
</StackLayout>
</ScrollView>
After changing content, this might fix it:
(InfoStack as IView).InvalidateArrange();
UPDATE BASED ON COMMENT
Instead use:
(InfoStack as IView).InvalidateMeasure();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With