I know that this WPF cell background issue has been covered many times, but all the solutions I've seen use xaml (see: Change DataGrid cell colour based on values)
You may think, why no xaml? Xaml is nice if you have static colouring rules, which I do not. (My app is an electrical solver which will highlight values over and under certain security limits defined by the grid operator)
Well, I cannot have static rules to colour the cells (something like if input>0.5 return red) because the rules of colouring are defined by the user at run time.
Is there any way of achieving cell styling without using any xaml?
Right now what I use is the windows forms datagrid embeeded in a windows forms host in a WPF UI (Ugly, but works) I would really like to have the WPF data grid since its performance is much better.
Any help is appreciated.