WPF DataGrid单元格颜色 [英] WPF DataGrid Cell Colors

查看:730
本文介绍了WPF DataGrid单元格颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个DataGrid

我想要的是让所有单元格的背景为黑色



所有单元格的文字白色



我很感激如何实现这一目标的线索



欢呼



Tony

解决方案

请参阅此讨论,回答#1: http://stackoverflow.com/questions/14847463/want-改变-wot-background-color-in-wpf-datagrid [ ^ ]。



-SA

Hi all,
I have a DataGrid
All I want is to have the Background of all cells Black
and
the Text of all cells white

I would appreciate a clue on how to achieve this please

cheers

Tony

解决方案

Please see this discussion, answer #1: http://stackoverflow.com/questions/14847463/want-to-change-the-cell-background-color-in-wpf-datagrid[^].

—SA


这篇关于WPF DataGrid单元格颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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