Infinite Scrolling with Incremental Data Loading in Xamarin.Forms

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2021
  • CollectionView has built-in ability to fetch additional data when the user scrolls through the content already loaded. As the data threshold is met, like when only 4 items remain to be displayed, the CollectionView can execute a command to fetch more data and append.
    Resources:
    * docs.microsoft.com/xamarin/xa...
    * Source: github.com/davidortinau/FlyMe
    Music: Coffee by Cambo licensed Creative Commons. freemusicarchive.org/music/Ca...
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 17

  • @Tamer_Ali
    @Tamer_Ali 3 ปีที่แล้ว +1

    That's what I was waiting for. Thanks David 👍

  • @tysonswing
    @tysonswing 2 ปีที่แล้ว

    Music is dope. You make it seem so easy, comments along the way are spot on. Thanks for posting, VERY helpful.

  • @deaasaleh3613
    @deaasaleh3613 3 ปีที่แล้ว

    Very useful for app performance with big data , keep going on David 👍👍

  • @mlegrand
    @mlegrand 3 ปีที่แล้ว +1

    Congrats on 1k subs! 👌

  • @HomeSlize
    @HomeSlize 3 ปีที่แล้ว +3

    The music is awesome! 👍🏽

  • @aiyaar3588
    @aiyaar3588 3 ปีที่แล้ว +1

    Woohoo..! Amazing Video, Seriously my app is Crashing on Android because I have thousands of Movies to load, I hope it will help me in Performance and will save my RAM!

  • @robertkomarek8615
    @robertkomarek8615 3 ปีที่แล้ว

    Hi, David! I remember a presentation of yours where u were scrolling up a text into an image and the image was fading out, the further u went up. Can u please make a video on that? Thx in advance! Robert

    • @DavidOrtinau
      @DavidOrtinau  3 ปีที่แล้ว +1

      sure thing, will do. I know what you're referring to.

  • @cissemy
    @cissemy 3 ปีที่แล้ว

    Great David.
    How can I do the same using code behind instead of MVVM ?

    • @DavidOrtinau
      @DavidOrtinau  3 ปีที่แล้ว +1

      These are mostly, if not all, Commands, so you're best-off binding commands to them. However, you can make your code behind the BindingContext and create your commands there just like you would on a ViewModel. In the code behind constructor set "BindingContext = this;".

    • @cissemy
      @cissemy 3 ปีที่แล้ว

      @@DavidOrtinau
      Thanks

  • @rahulsalokhe200
    @rahulsalokhe200 2 ปีที่แล้ว

    Can we change InitData() function in to
    private async void InitData()
    {

  • @Tamer_Ali
    @Tamer_Ali 3 ปีที่แล้ว

    Why you marked LoadMoreAsync method as void instead of Task?
    Is it better to use Task instead of void except in some situations like event handlers?

    • @DavidOrtinau
      @DavidOrtinau  3 ปีที่แล้ว

      Because I’m being lazy here and I just wanted to show the CollectionView here. For guidance on async/await check out the resources here github.com/brminnick/AsyncAwaitBestPractices and channel9.msdn.com/Shows/On-NET/Brandon-Minnick-asyncawait-best-practices

    • @robertkomarek8615
      @robertkomarek8615 3 ปีที่แล้ว

      Would it make a difference in this case? I mean; would it be noticeable, not just measurable?

  • @satyasandeep9845
    @satyasandeep9845 2 ปีที่แล้ว

    There is a flaw in this program.. You should mention + instead of *. I think it will multiply the values and take other values..