I have a window1.xaml file that has a canvas created in xaml. I have used xaml to define the canvas so that i can later add a map from Expression Design to it. I have a function in an outside class file, PathNode.cs, that should draw an ellipse to the canvas. My problem is that when I try to add the ellipse to the canvas via:
canvas1.Children.Add(node);
I get the error "The name 'canvas1' does not exist in the current context," which I understand, but don't know how to remedy.
How do i access the canvas from the other class file?