< Grid ScrollViewer.HorizontalScrollBarVisibility =" Visible" ScrollViewer.HorizontalScrollMode = QUOT;启用">作品? [英] How does <Grid ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollMode="Enabled"> works?
问题描述
您好。我试图为我的网格实现一个滚动条,但我的力量没有结果。现在我在网格上有很多项目,但是我看不到那些在右侧的项目。我试图在< ScrollViewer>中设置所有内容。但是
然后我的网格向下,而不是向右。然后 我决定玩一个< ScrollBar>但我无法让它工作甚至看到它,最后我尝试了这个,< Grid ScrollViewer.HorizontalScrollBarVisibility =" Visible" ScrollViewer.HorizontalScrollMode =" Enabled">,
但我看不到滚动条。有什么建议?在此先感谢。
Hi. I've trying to implement a scroll bar for my grid but my effors have been fruitless. Right now I have a lot of items on the grid but I cant see those that are on the right side. I tried to set everything inside a <ScrollViewer> but then my grid grows down, instead of to the right. Then I decided to play with a <ScrollBar> but I cant get it to work or even see it and finally I tried this, <Grid ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollMode="Enabled">, but I dont see the scrollbar. Any suggestions? Thanks in advance.
推荐答案
网格没有包含ScrollViewer的控件模板,因此设置ScrollViewer附加属性将不起作用。
你能分享任何示例代码吗?
听起来你应该使用GridView。
这篇关于< Grid ScrollViewer.HorizontalScrollBarVisibility =" Visible" ScrollViewer.HorizontalScrollMode = QUOT;启用">作品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!