This project is read-only.

LineGraphs draw over eachother/Bring to Front

Aug 12, 2009 at 4:29 PM
Edited Aug 12, 2009 at 4:35 PM

I have a chart with 5 LineGraphs as shown below:

Note the Blue Line is at the back

Blue at Back

I am trying to add functionality to allow user to Bring to Front on Right Click - which I have implement but I think my method is incorrect. I simply find the line, remove it from plotter and then reattach. This however moves the legend item to the bottom as can be seen here with the Legend (a)

Blue at Front

Is there any way to tell the plotter to draw something in front of others without reordering the way they are drawn on the legend?

This is what I am doing - where (drawnGraph) is the Line clicked

plotter.Children.Remove(drawnGraph.LineGraph);

plotter.Children.Add(drawnGraph.LineGraph);

 

 

Aug 21, 2009 at 2:31 PM

Hi,

I've created for you new ChartBringToFrontSample - it is in the Latest changeset (28519)/DynamicDataDisplay.sln/DevSamples/ChartBringToFrontSample.csproj.

Briefly - use the Z-Order, programmer, and everything'll be OK)

 

Regards,

Mikhail.

Aug 24, 2009 at 10:48 AM

Thank you Mikhail

You and your team are doing an excellent job with this!