I have a WPF DataGrid, In that I can set DataGrid RowBackground color, alternative RowBackground color independently. Likewise I want to set DataGrid RowForeground color, alternative RowForeground color independently.
How can I achieve this with simple and optimal way?
I am binding DataGrid dynamically, XAML static resource wont help me here.
you can use the AlternationIndex prop like that: