xaml – WrapGrid水平滚动Windows 8
发布时间:2020-12-14 04:38:23 所属栏目:Windows 来源:网络整理
导读:主网格有下一个XAML: ListView Grid.Row="1" x:Name="NewsListBox" ListView.Background SolidColorBrush Color="#FF006C67" Opacity="0.5"/ /ListView.Background ListView.ItemsPanel ItemsPanelTemplate WrapGrid Orientation="Vertical"/ /ItemsPanelTe
主网格有下一个XAML:
<ListView Grid.Row="1" x:Name="NewsListBox"> <ListView.Background> <SolidColorBrush Color="#FF006C67" Opacity="0.5"/> </ListView.Background> <ListView.ItemsPanel> <ItemsPanelTemplate> <WrapGrid Orientation="Vertical"/> </ItemsPanelTemplate> </ListView.ItemsPanel> </ListView> 它看起来不错,它是如何需要的: 但它不会滚动内容! 好的,我添加了ScrollViewer: <ScrollViewer Grid.Row="1" VerticalScrollMode="Disabled" ZoomMode="Disabled"> <ListView Grid.Row="1" x:Name="NewsListBox"> <ListView.Background> <SolidColorBrush Color="#FF006C67" Opacity="0.5"/> </ListView.Background> <ListView.ItemsPanel> <ItemsPanelTemplate> <WrapGrid Orientation="Vertical"/> </ItemsPanelTemplate> </ListView.ItemsPanel> </ListView> </ScrollViewer> 并且它垂直堆叠所有内容: 我究竟做错了什么? 解决方法
找到了解决方案.不需要ScrollViewer.
只需用GridView替换ListView,因为ListView不是为水平滚动而设计的. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Microsoft SQL Server 2008 R2 安装遇到的问题
- windows-server-2003 – 为什么“本地安全策略”设置变灰?
- windows – 在Rmd文件中包含apsrtable(或stargazer)输出
- 用于Windows的rsyslog或类似的分布式日志记录标准?
- windows-server-2008 – 64位Windows 2008 Server R2上的Sy
- Windows 8 WinRT – C或C .NET?
- AD PowerShell for Add Account & OU & Group
- windows-server-2008-r2 – 为什么在使用DFSR复制后文件最终
- 在Windows 64x下的GCC中的printf和%llx
- 哪个是Windows并发tcp / ip连接的最大数量?
推荐文章
站长推荐
热点阅读