title: Xamarin Forms - ScrollView How to check if you scroll to the bottom
body: <pre><code>private void scrollView_Scrolled(object sender, ScrolledEventArgs e) {
      OnScroll(e.ScrollY);
      var CurrentHeight = scrollView.Bounds.Height + scrollView.ScrollY + scrollView.Padding.VerticalThickness;
      var ContentHeight = scrollView.ContentSize.Height;
  
      Debug.WriteLine("计算当前高度:" + CurrentHeight + "|" + "内容区域总高度:" + ContentHeight + "|" + "滚动条Y:" + e.ScrollY + "|" + "当前可视区域高度:" + scrollView.Bounds.Height);
  
      if (scrollView.Height == e.ScrollY) {
  
      }
      OnScrollEnd();
  }
  </code></pre>
  
  <p>I want to check if it's scrolled to the bottom but the code results aren't satisfactory to me
  <code>CurrentHeight(2716.38095238095)!=ContentHeight(2717.2380952381)</code></p>
  
  <p>Although they are close but not the same, why?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
               xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
               xmlns:d="http://xamarin.com/schemas/2014/forms/design"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
               mc:Ignorable="d"
               x:Class="BookApp.Views.ChapterPageDetail"
               Title="{Binding Name}"&gt;
  
  
      &lt;ScrollView x:Name="scrollView" Padding="0" Scrolled="scrollView_Scrolled" &gt;
          &lt;StackLayout x:Name="stackLayout" Padding="10"&gt;
              &lt;Label Text="{Binding Content}" TextColor="#070707"/&gt;
              &lt;Button Text="Next chapter" Clicked="Button_Clicked"&gt;&lt;/Button&gt;
              &lt;StackLayout.GestureRecognizers&gt;
                  &lt;SwipeGestureRecognizer Direction="Left" Swiped="OnSwipedLeft"/&gt;
                  &lt;SwipeGestureRecognizer Direction="Right" Swiped="OnSwipedRight"/&gt;
              &lt;/StackLayout.GestureRecognizers&gt;
          &lt;/StackLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/ContentPage&gt;
  </code></pre>