为 Windows Phone Silverlight 工具包中的 LoopingSelector 设计外观
我正在尝试将 LoopingSelector 重用于我自己的集合。从技术上讲,一切都工作得很好,我正在尝试对列表中显示的项目进行剥皮,但在那里取得的成功较少。
使用我自己的数据添加 DataTemplate 是没有问题的。问题是我希望 LoopingSelector 折叠时显示的单个元素与展开时以不同的样式显示。据我所知,我可以在 LoopingSelector 总线上设置样式,但我需要在 LoopingSelectorItem 上设置样式,但找不到任何方法来做到这一点。
任何帮助将不胜感激
I am trying to reuse the LoopingSelector for my own collection. Technically everything is working just fine nut I am trying to skin the items presented in the list and having less success there.
Adding a DataTemplate with my own data is no problem. The problem is that I want the single element shown when the LoopingSelector is collapsed shown with a different style then when it is expanded. I can set the style on the LoopingSelector bus as far as I can tell I need to set the style on the LoopingSelectorItem and can´t find any way to do so.
Any help would be appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不能用“正常”、“扩展”和“选定”状态来实现这一点吗?
你尝试了什么?
Can you not achieve this with the "Normal", "Expanded" and "Selected" states?
What have you tried?