更改绑定到数据集的ListViewItem的显示属性 [英] Change display properties of ListViewItem binded to a dataset

查看:71
本文介绍了更改绑定到数据集的ListViewItem的显示属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个wpf应用程序,在该应用程序上,我使用了ListView控件,该控件使用与
的数据绑定 数据集.

基于特定列的值,我想更改列表视图中行的字体样式

I have a wpf application on which, I use a ListView control which uses databinding with
a dataset.

Based on the value of a particular column, I want to change the font style of rows in listview

How can I do this?

推荐答案

我自己找到了解决方案,可以通过分配ItemContainerStyle
完成.
并在样式中定义设置器
I myself found the solution, it can be done by assigning ItemContainerStyle

and define setters in Style


这篇关于更改绑定到数据集的ListViewItem的显示属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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