摘要: 与上一篇WPF DataGrid 改变单元格字体颜色或单元格背景颜色(一)里的后台实现方法一样,改变前台XAML代码:前台XAML代码:<Window x:Class="WpfDataGridCellColors.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:loca="clr-namesp 阅读全文
posted @ 2012-11-28 10:57 着凉的白开水 阅读(10566) 评论(0) 推荐(0)
摘要: 我是把博文当记事本的地方……WPF DataGrid 改变单元格字体颜色或单元格背景颜色(一)第一种方法,指定 DataGrid 里单元格的值是否符合用户自定义的条件,如果不,改变指定的颜色:前台XAML代码:<Window x:Class="WpfDataGridCellColors.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x 阅读全文
posted @ 2012-11-28 10:33 着凉的白开水 阅读(11802) 评论(0) 推荐(0)
摘要: 1、要将窗口显示出来,除了Window对象的Show方法外,还可以直接将Window对象当作参数传给Run方法。2、用Application对象的Current.MainWindow可以得到当前创建的主窗口对象。3、当Window对象ShowInTaskBar属性的值等于False时,任务栏上只会显示主窗口。4、当Application对象的ShutdownMode属性的值等于OnMainWind... 阅读全文
posted @ 2010-06-02 10:57 着凉的白开水 阅读(205) 评论(0) 推荐(0)