Page 1 of 1

Double-click on SubChart error

Posted: Thu May 15, 2014 4:57 am
by 15669262
Hello steema!
I have an InvalidOperationException "Every RoutedEventArgs must have a non-null RoutedEvent associated with it." on double-click on subchart area.
To reproduce it create TChart with SubChartTool

Code: Select all

Bar bar = new Bar();
            bar.Marks.Visible = false;
            bar.Add(5);            
            bar.Add(7);
            MyTChart.Series.Add(bar);

            SubChartTool subChartTool = new SubChartTool();
            MyTChart.Tools.Add(subChartTool);
            TChart subChart = subChartTool.Charts.AddChart(string.Empty);
            subChart.Aspect.View3D = false;            
            subChart.Panel.Color = Colors.Transparent;
            subChart.Walls.Visible = false;
            subChart.Axes.Visible = false;

            Pie subChartPie = new Pie();
            subChartPie.Marks.Visible = false;
            subChartPie.Add(10);
            subChartPie.Add(6);
            subChartPie.Brush.Color = Colors.Red;
            subChart.Series.Add(subChartPie);
and then do a double-click on Pie.

Re: Double-click on SubChart error

Posted: Thu May 15, 2014 3:30 pm
by Christopher
Hello!

This defect has now been fixed, as you can see here.

As a workaround, until the next maintenance release, this workaround can be used.