Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1720 - XAML exportation of Histogram in WPF has broken
Summary: XAML exportation of Histogram in WPF has broken
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: WPF (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- regression
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-14 10:57 EST by christopher ireland
Modified: 2016-12-19 07:27 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christopher ireland 2016-12-14 10:57:25 EST
Using this code:

    public MainWindow()
    {
      InitializeComponent();

      MyTChart.CurrentTheme = ThemeType.None;

      MyTChart.Width = 400;
      MyTChart.Height = 300;
      MyTChart.Axes.Left.SetMinMax(0, 10);
      MyTChart.Axes.Bottom.SetMinMax(0, 10);

      series = new Histogram();
      series.FillSampleValues(100);

      MyTChart.Series.Add(series);
    }

    public Histogram series;


    private void Button_Click(object sender, RoutedEventArgs e)
    {
      Steema.TeeChart.WPF.Export.XAMLFormat xaml = MyTChart.Export.Image.XAML;
      MemoryStream ms = new MemoryStream();
      xaml.Save(ms);
      ms.Position = 0;
      object exportedXaml = XamlReader.Load(ms);
    }

works as expected in TeeChartforNET_4.1.2015.03110, but throws an exception in the current version.