为 Windows Phone Silverlight 工具包中的 LoopingSelector 设计外观

发布于 2024-10-05 19:20:08 字数 271 浏览 0 评论 0原文

我正在尝试将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

贪了杯 2024-10-12 19:20:08

你不能用“正常”、“扩展”和“选定”状态来实现这一点吗?

你尝试了什么?

Can you not achieve this with the "Normal", "Expanded" and "Selected" states?

What have you tried?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文