将背景颜色添加到Listview的特定行 [英] Add Background Color to Listview's Specific Row

查看:80
本文介绍了将背景颜色添加到Listview的特定行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目标:

如果当前时间超过预约时间,则将列表视图的背景颜色更改为浅灰色。例如,时间是10.15,你有背景颜色09.30 - 10.30和10.00 - 11.00。



问题:

我做不知道我需要使用什么语法来实现目标。



信息:

- 我使用Nhibernate来检索数据。

- 这是一个用户控件。



图片。

http://social.msdn.microsoft.com/Forums/getfile/466353 [ ^ ]

解决方案

看看这个



突出显示WPF ListView中的项目 [ ^ ]

试试这个.. :)



WPF ListView - 如何设置所选项目背景颜色? [ ^ ]



如何突出显示 - row-in-wpf-listview-control-with-alternating-backgroun [ ^ ]



how-to-set-wpf-listview-selected-item.html [ ^ ]



listview-selected-color-background-and-other-background-colors?forum = wpf [ ^ ]

Goal:
Change the listview's background color to light colored grey if the current time pass the appointment time. For instance, the time is 10.15 and you have background color for the 09.30 - 10.30 and 10.00 - 11.00.

Problem:
I do not know what syntax I need to use in order achieve the goal.

Information:
- I'am using Nhibernate to retrive the data.
- This is a usercontrol.

A picture.
http://social.msdn.microsoft.com/Forums/getfile/466353[^]

解决方案

Have a look at this

Highlighting Items in a WPF ListView[^]


try this.. :)

WPF ListView - how do i set selected item background colour?[^]

how-to-highlight-selected-row-in-wpf-listview-control-with-alternating-backgroun[^]

how-to-set-wpf-listview-selected-item.html[^]

listview-selected-color-background-and-other-background-colors?forum=wpf[^]


这篇关于将背景颜色添加到Listview的特定行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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