这是我的DataGridTemplateColumn
DataGridTemplateColumn dgt = new DataGridTemplateColumn();
dgt.CellTemplate = (System.Windows.DataTemplate)XamlReader.Load(@"<DataTemplate
xmlns='http://schemas.microsoft.com/client/2007'
xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
<CheckBox></CheckBox> </DataTemplate>");
如何在后面的代码中设置颜色?dgt.
不显示Background
or的任何选项Foreground
。