How do I change the color of Cell in WPF DataGrid based on a property of the object in itemsource?
问题 I have a very simple object called CellData. Is defined as: public sealed class CellData { internal string DisplayText { get; set; } public string Color { get; set; } public override string ToString() { return this.DisplayText; } } I can get it to display using the WPF toolkit DataGrid just fine. However, I want to be able to change the background color of each cell based on what data is in the cell. I'm having trouble understanding what type of binding I need to do because I can't see to get