wordpress   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了windows-phone-8 – Longlistselector中的ItemsPanel属性控制Windows Phone 8 SDK大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

有人知道 Windows Phone 8 SDK(而不是WP 7.5的Windows Phone工具包)中的Longlistselector控件是否具有ItemsPanel属性或等效属性? ListBox控件具有这样的属性,我用它来包装WrapPanel中的项目. <ListBox> <ListBox.ItemsPanel> <ItemsPanelTemplate>
有人知道 Windows Phone 8 SDK(而不是WP 7.5的Windows Phone工具包)中的Longlistselector控件是否具有ItemsPanel属性或等效属性

@H_403_8@

ListBox控件具有这样的属性,我用它来包装WrapPanel中的项目.@H_403_8@

@H_403_8@

<ListBox>
    <ListBox.ItemsPanel>
        <ItemsPanelTemplate>
            <toolkit:WrapPanel/>
        </ItemsPanelTemplate>
    </ListBox.ItemsPanel>
</ListBox>

这里有一个答案:How to wrap ItemsPanel in LongListSelector?但这是指在工具包中找到的Longlistselector,而不是在WP8 SDK中(我无法访问源代码以使用上述解决方案).@H_403_8@

有人有想法吗?@H_403_8@

解决方法

您应该能够使用LayoutMode属性完成此操作.将值设置为Grid

@H_403_8@

@H_403_8@

<phone:LongListSelector ItemsSource="{Binding Items}" LayoutMode="Grid" >

大佬总结

以上是大佬教程为你收集整理的windows-phone-8 – Longlistselector中的ItemsPanel属性控制Windows Phone 8 SDK全部内容,希望文章能够帮你解决windows-phone-8 – Longlistselector中的ItemsPanel属性控制Windows Phone 8 SDK所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: