Giter Site home page Giter Site logo

Comments (3)

jamesmontemagno avatar jamesmontemagno commented on September 12, 2024

If you clone this repo, open the Finished folder project and run it does that work for you? It does for me and is scrolling fine.

I tested it here on my windows machine and android phone.

I also opened up the Part 2 folder, which is the where the video you linked to is. I added more monkeys into the hardcoded list and launched it and is scrolling fine for me here...

from dotnet-maui-workshop.

shushu789 avatar shushu789 commented on September 12, 2024

Thank you very much for getting back to me!
I apologize to you for not describing it clearly at first, what I meant was that scrolling doesn't work when the content is out of the visible range when the CollectionView is inside a VerticalStackLayout, like this:

 <VerticalStackLayout>
     <CollectionView>
         <! --... -->
     </CollectionView>
 </VerticalStackLayout>

This is also basically the same as described at the beginning of your YouTube video, but what you demonstrated in the video works, and what I tested doesn't.
I tested the Finished folder project, which uses a Grid instead of a VerticalStackLayout, and this won't be a problem because I also replaced it with a Grid the first time I encountered the problem above. like this:

 <Grid>
     <CollectionView>
         <! --... -->
     </CollectionView>
 </Grid>

Translated with DeepL.com (free version)

from dotnet-maui-workshop.

jamesmontemagno avatar jamesmontemagno commented on September 12, 2024

Yes you would want it in a grid or by itself.

If you put it in a VerticalStackLayout then it will not know the height that you need.

from dotnet-maui-workshop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.