首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

在wpf中怎样动态设置datagrid的某一个单元格的背景颜色解决方法

2012-05-03 
在wpf中怎样动态设置datagrid的某一个单元格的背景颜色在listview中也可以,谢谢了,就急啊[解决办法]C# cod

在wpf中怎样动态设置datagrid的某一个单元格的背景颜色
在listview中也可以,谢谢了,就急啊

[解决办法]

C# code
public class TestModel : DependencyObject    {        public string Test        {            get            {                return ((string)(GetValue(TestProperty)));            }            set            {                SetValue(TestProperty, value);            }        }        /// <summary>        /// Using a DependencyProperty as the backing store for BondSecurityNameForBinding.  This enables animation, styling, binding, etc...        /// </summary>        public static DependencyProperty TestProperty = DependencyProperty.Register("Test", typeof(string), typeof(TestModel));    } 

热点排行