windows-phone-8 – Longlistselector中的ItemsPanel属性控制Win
发布时间:2020-12-14 03:58:58 所属栏目:Windows 来源:网络整理
导读:有人知道 Windows Phone 8 SDK(而不是WP 7.5的Windows Phone工具包)中的Longlistselector控件是否具有ItemsPanel属性或等效属性? ListBox控件具有这样的属性,我用它来包装WrapPanel中的项目. ListBox ListBox.ItemsPanel ItemsPanelTemplate toolkit:WrapPa
有人知道
Windows Phone 8 SDK(而不是WP 7.5的Windows Phone工具包)中的Longlistselector控件是否具有ItemsPanel属性或等效属性?
ListBox控件具有这样的属性,我用它来包装WrapPanel中的项目. <ListBox> <ListBox.ItemsPanel> <ItemsPanelTemplate> <toolkit:WrapPanel/> </ItemsPanelTemplate> </ListBox.ItemsPanel> </ListBox> 这里有一个答案:How to wrap ItemsPanel in LongListSelector?但这是指在工具包中找到的Longlistselector,而不是在WP8 SDK中(我无法访问源代码以使用上述解决方案). 有人有想法吗? 解决方法
您应该能够使用LayoutMode属性完成此操作.将值设置为Grid
<phone:LongListSelector ItemsSource="{Binding Items}" LayoutMode="Grid" > (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读