How can I do the same thing of building a BrushCollection and assigning to RadStackedDataBar programmatically in code behind. Thanks for answers.
1 Answer, 1 is accepted
answered on 22 Jan 2014, 09:44 AM
You can accomplish your requirement by adding the brushes in the BarBrushes collection of the StackedDataBar. Please, note that by default the collection holds several brushes, which you will first
need to remove, otherwise they will be applied before your brushes. Take a look at the code sample demonstrating this approach:
// Set the items source
this.xStackedDataBar.ItemsSource = new ObservableCollection<double>
On a side note, I noticed that you have opened the same thread in the Chart section of the forum, but I think it would be better if we continue the communication for the StackedDataBar in the DataBar section. That's why we are going to remove the other thread. However, please feel free to open a new thread in the Chart section if you have any Chart-related questions.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>