< Grid ScrollViewer.Horizo​​ntalScrollBarVisibility =" Visible" ScrollViewer.Horizo​​ntalScrollMode = QUOT;启用">作品? [英] How does <Grid ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollMode="Enabled"> works?

查看:52
本文介绍了< Grid ScrollViewer.Horizo​​ntalScrollBarVisibility =" Visible" ScrollViewer.Horizo​​ntalScrollMode = QUOT;启用">作品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我试图为我的网格实现一个滚动条,但我的力量没有结果。现在我在网格上有很多项目,但是我看不到那些在右侧的项目。我试图在< ScrollViewer>中设置所有内容。但是
然后我的网格向下,而不是向右。然后 我决定玩一个< ScrollBar>但我无法让它工作甚至看到它,最后我尝试了这个,< Grid ScrollViewer.Horizo​​ntalScrollBarVisibility =" Visible" ScrollViewer.Horizo​​ntalScrollMode =" 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。


这篇关于&lt; Grid ScrollViewer.Horizo​​ntalScrollBarVisibility =&quot; Visible&quot; ScrollViewer.Horizo​​ntalScrollMode = QUOT;启用&QUOT;&GT;作品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆