Nov 25, 2010 at 10:29 AM
Edited Nov 25, 2010 at 11:45 AM
Before I create a new issue post I want to know your opinion about the following.
I made a sample project. The application has an tab control with 2 tab items.
A ChartPlotter with an InjectedPlotter and two axes is created in the constructor of the window.
The window is interested in the loaded event of the ChartPlotter. If the event occured then tabcontrol index will set to the second tab item.
Now the issue. Selecting the first tab item releases following exception.
"Cannot add item to Plotter - first it should be removed from another Plotter." in Microsoft.Research.DynamicDataDisplay.Plotter.OnChildAdded(IPlotterElement child)
In my opinion the issue is related to "Dispatcher.BeginInvoke((Action)(() => ExecuteWaitingChildrenAdditions()), DispatcherPriority.Background);" in
the "void IPlotterElement.OnPlotterAttached(Plotter plotter)" method of the InjectedPlotter class.
Please try it out and give me response what I can do or what you will do to solve the problem.
(I used the nightly build 0.3.4703.0)