![]() | Steema Issues DatabaseNote: 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. |
| Summary: | Unhandled System.ArgumentException thrown in XAML Canvas | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | christopher ireland <chris> |
| Component: | Canvas | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
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 "); } } }