I have a XamDataGrid with color coded headers. I'd like to map those same colors to my XamChart. For example, Header A is red, header B is blue. In my XamChart, I'd like series A to be red and series B to be blue. The header colors are dynamic (eventually I'll add a color picker so the user can force header A to be red in all instances).
I am using InfragisticsWPF4.Chart.v10.2 and MVVM.
Any suggestions?
Thx,
Ivan
I got it working today. I had to write the color management engine first. ;)
I extended my series data object to include a brush and bound the fill to the new brush property in the XAML at the series level. My color management engine is working and maps the color to a new SolidColorBrush().
Thx!
Hello Ivan,
The Series class has a Fill property you can bind to your view model’s field.
Please let me know if you encounter any issues doing so and if not please mark the thread as answered so it help other users as well.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support