Question

I have a screen in my wp7 app with only a canvas, used to display a graph.

I handle the page loaded event to draw the graph, by adding lines to the graph children, the lines are stored in a list variable in App.xaml.cs.

edit: here is my draw line function

    private void drawLine(Line line, Point start, Point end, Color color)
    {            
        line.X1 = start.X;
        line.Y1 = start.Y;

        line.X2 = end.X;
        line.Y2 = end.Y;            

        line.Stroke = new SolidColorBrush(color);

        graph.Children.Add(line);
    }

I handle the tombstoning by storing/loading the lines in the settings.

I placed a breakpoint in the page loaded method, the lines are restored correctly after tombstoning, and the lines are added to the graph canvas children, yet the canvas displays a black screen.

How do i solve this ?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top