Hi,
xdg.Theme = "Onyx";
xdg.Foreground = new SolidColorBrush(Colors.Black);
Doesn't seem to work. Any ideas? Thanks!
-Matt
Hi Matt,
The reason it is not doing what you want is because the XamDataGrid consists of a complex tree of elements that have individual default styles that include different default Foreground setters. For example, if you wanted to change the foreground of the field labels you would supply a style for the LabelPresenter that supplied a different Foreground setting.
BTW, the best way for you to find out what settings are being applied to specific elements (and where the values are coming from) is to run the Snoop utility (found at http://www.blois.us/Snoop/).