2

question to UWP C# devs:

how do you guys handle scrolling ?

(i couldnt find a good examole, and alreaddy googled and the solution was that scrolling only works if the height is fixed.)

Comments
  • 0
    Don't know what uwp is, but... can't you set different height for the content(scrollable) and the container?
  • 0
    sure, but the container should fill the whole screen, and the content is dynamic
  • 0
    @JaggerJo then set some minimal height for the initialization and then update height when you change the content.
  • 0
    I thought there must be a better way to do it.
    Sure it would work that you bey the i have to do this in the code behind and not in xaml.. I guss youbmean the containers height, content height isnt a problem.
  • 0
    @JaggerJo Well, you said container is fixed, therefore I think the content if dynamically sized would need an update e.g. if your widget isn't capable to render correctly when e.g. text in content is bigger than content's height.
Add Comment