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 1857 - Unhandled System.ArgumentException thrown in XAML Canvas
Summary: Unhandled System.ArgumentException thrown in XAML Canvas
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Canvas (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-04 10:47 EDT by christopher ireland
Modified: 2017-05-04 10:51 EDT (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 2017-05-04 10:47:09 EDT
Code to reproduce (WPF):

    private void InitializeChart()
    {
      tChart1.Series.Add(typeof(Points));
      tChart1[0].Add(3);
      tChart1[0].Add(13);
      tChart1.Axes.Left.SetMinMax(0, 10);
    }

    private void Button_Click(object sender, RoutedEventArgs e)
    {
      var xamlFormat = new XAMLFormat(tChart1.Chart);
      using (MemoryStream ms = new MemoryStream())
      {
        try
        {
          xamlFormat.Save(ms);
          MessageBox.Show("Ok", "Saving chart to memory stream");
        }
        catch (Exception ex)
        {
          Console.WriteLine(ex);
          MessageBox.Show($" {ex.Message}", "Error when saving chart to memory stream ");
        }
      }
    }