ScrollViewer ContentScroll is missing

泄露秘密 提交于 2019-12-13 03:24:37

问题


my ScrollViewer doesn't work. scrolling isn't possible.

<ScrollViewer>
 <StackPanel>
   <ListView>  </ListView>
   <Grid>      </Grid>
   <ListView>  </ListView>
 </StackPanel>
</ScrollViewer>

i have tried different possibilities with setting of height (for ScrollViewer and StackPanel).

how to scroll the content ?

EDIT: VerticalScrollBarVisibility="Visible" and CanContentScroll="True" already used

jeff


回答1:


It's probably because you have your scrollviewer inside something like a stackpanel. Try a grid instead.



来源:https://stackoverflow.com/questions/1150697/scrollviewer-contentscroll-is-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!