Using 14.1, is there a way to bind colors from a dataset to the BrushCollection of a PieChart?
Hello PMac,
In 14.1, and in the current version of Infragistics for WPF there isn't a way to bind the items of a BrushCollection, but it is possible to bind the BrushCollection itself. I would recommend defining a BrushCollection property on the data context of your XamPieChart that you can manage and bind to the chart.
If you would like to see the ability to bind the items of the BrushCollection included in a future version of Infragistics for WPF, I would recommend suggesting a new product idea for this feature at http://ideas.infragistics.com. This product ideas site places you in direct communication with our product management teams who plan and prioritize upcoming features based on community feedback.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
Thank you. By chance could you show a small example? I was unable to figure out which property on the XamPieChart in XAML to bind.
I have attached a small sample project that demonstrates binding to the Brushes property of the XamPieChart, which is the property that accepts the BrushCollection.