如何在窗口电话 7 的列表框中应用交替行样式 [英] How to apply alternate row style in listbox in window phone 7

查看:27
本文介绍了如何在窗口电话 7 的列表框中应用交替行样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Window phone 7 的新手,我在将样式应用于 Window phone 7 列表框中的交替行颜色时遇到问题.请帮助我.

Hi I am New to Window phone 7, I have a Problem for Applying style to alternate row color in listbox in Window phone 7. Please Help Me.

推荐答案

虽然 WPF 具有支持此功能的 ALternationCount 属性,但 Silverlight(Web 版本和 WP7)都没有.在 Silverlight 中创建此效果的最简单方法是通过值转换器设置项目的背景颜色.请参阅以下线程:

While WPF has an ALternationCount property that supports this, Silverlight, both the web version and WP7, do not. The easiest way to create this effect in Silverlight is to set the bacground colour of your item via a value converter. See the following thread:

交替背景颜色用于列表框行

这篇关于如何在窗口电话 7 的列表框中应用交替行样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆