Windows Phone 7 – 如何在LongListSelector中包含ItemsPanel?
我正在使用listbox和wrappanel来显示数据. 例如: <ListBox ItemTemplate="{StaticResource ItemTemplateListBoxAnimation}"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <toolkit:WrapPanel ItemHeight="150" ItemWidth="150"> </toolkit:WrapPanel> </ItemsPanelTemplate> </ListBox.ItemsPanel> </ListBox> <DataTemplate x:Key="ItemTemplateListBoxAnimation"> <Grid Width="130" Height="130"> <Image Source="{Binding Image}"/> </Grid> </DataTemplate> 看起来像: 现在我需要使用LongListSelector和分组结果: <toolkit:LongListSelector ItemTemplate="{StaticResource ItemTemplateListBoxAnimation}"> <toolkit:LongListSelector.GroupItemsPanel> <ItemsPanelTemplate> <toolkit:WrapPanel/> </ItemsPanelTemplate> </toolkit:LongListSelector.GroupItemsPanel> </toolkit:LongListSelector> 但它看起来像: 我需要得到: 你的假设? 不幸的是,WP工具包似乎没有暴露出你想要的ItemsPanel,所以你必须修改工具包的源代码才能获得所需的行为. >从这里获取来源:https://phone.codeplex.com/SourceControl/changeset/view/80797 <primitives:TemplatedListBox.ItemsPanel> <ItemsPanelTemplate> <controls:WrapPanel/> </ItemsPanelTemplate> </primitives:TemplatedListBox.ItemsPanel> >重建和引用新的dll,您的项目应适当包装! (编辑:52站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- windows-server-2008-r2 – 入站Windows防火墙核心网络规则
- Windows – Visual Studio 2015更新1 – 调试时没有IIS Exp
- win10指令提示符在哪 win10命令提示符位置
- win10专业版和企业版的差别是什么
- IIS 8中“连接”面板中的“创建新连接”按钮在哪里?
- 为什么ssh-host-config在Windows 8.1上的Cygwin中创建了两个
- windows-terminal-services – 通过WAN运行终端服务器(RDS)
- Oracle Autonomous Linux:用于云计算的自我更新、自我修补
- 在Windows XP中安装Apache+MySQL+PHP环境
- 手把手教你win10企业版系统安装方法
- windows-server-2008-r2 – 在Windows Server 20
- windows-7 – Windows 7始终附加VHD
- Win10键盘鼠标无法唤醒睡眠电脑是什么原因?
- Win10下游戏不能全屏如何处理
- 从Windows使用32feet.net库发送bMessage到消息访
- windows-server-2008 – 如何找出服务器重启的原
- Deepin 20,外媒称它是最漂亮的操作系统
- Windows如何决定在解析名称时使用哪个DNS服务器?
- windows-7 – 作为开发人员,我应该升级到Windows
- .net – System.Windows.Forms.WebBrowser在同一