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);