or
<telerik:RadChart x:Name="DefectChart" Grid.Row="1" SeriesMappings="{Binding DiagramMappings}"></telerik:RadChart>SeriesMappingCollection _mappings;public SeriesMappingCollection DiagramMappings{ get { if (_mappings == null) { _mappings = new SeriesMappingCollection(); var temp = new SeriesMappingCollection(); var sm = new SeriesMapping(); sm.SeriesDefinition = new StackedBarSeriesDefinition(); sm.ItemMappings.Add(new ItemMapping("Category", DataPointMember.XCategory)); sm.ItemMappings.Add(new ItemMapping("Data", DataPointMember.YValue)); sm.ItemsSource = new List<ChartData>() { new ChartData("C1", 1), new ChartData("C2", 5), new ChartData("C3", 7) }; temp.Add(sm); var sm2 = new SeriesMapping(); sm2.SeriesDefinition = new StackedBarSeriesDefinition(); sm2.ItemMappings.Add(new ItemMapping("Category", DataPointMember.XCategory)); sm2.ItemMappings.Add(new ItemMapping("Data", DataPointMember.YValue)); sm2.ItemsSource = new List<ChartData>() { new ChartData("C1", 10), new ChartData("C2", 7), new ChartData("C3", 18) }; temp.Add(sm2); this._mappings = temp; } return _mappings; } set { _mappings = value; NotifyOfPropertyChange(() => DiagramMappings); }}public class ChartData { public ChartData(string c, double d) { this.Category = c; this.Data = d; } public string Category { get; set; } public double Data { get; set; } }var qRCode = new RadBarcodeQR();qRCode.ErrorCorrectionLevel = QRClassLibrary.Modes.ErrorCorrectionLevel.H;qRCode.Mode = QRClassLibrary.Modes.CodeMode.Byte;qRCode.Version = 2;qRCode.Text = "TestText";const string extension = "png";var dialog = new SaveFileDialog(){ DefaultExt = extension, FileName = "QRBarCode", Filter = "Png (*.png)|*.png"};if (dialog.ShowDialog() == true){ using (var stream = dialog.OpenFile()) { ExportExtensions.ExportToImage(qRCode, stream, new PngBitmapEncoder()); }}<DataTemplate x:Key="TextCell" DataType="telerik:GridViewCell"> <TextBlock Text="{Binding Value, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}}" TextAlignment="{Binding TextAlignment, RelativeSource={RelativeSource TemplatedParent}}" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap" /> </DataTemplate>