in my WPF project C# based, i have a window with a canvas, a treeview with some elements and a frame. The frame is used to contain a page, that changes based on treeview element selected. In page I have some textboxes in which I can write double values.
I.e. if I select first element of tree, the page loaded is Page1, in which there are 2 textboxes, if I select the second, the page loaded is Page2, in which there are 3 textboxes.
I need that, after changing value in textbox, I can do some operation on the canvas, i.e. if I write a value, a line into the canvas moves by that value in a certain direction. The event to manage is present in the Page class, but the Canvas is on Window class. So how can I manage canvas from outside the Window class? Or I need to change layout of Window and do not use a Frame to contain a page with textboxes? Any suggestion?
Thanks