I'm creating a WPF desktop application. I have a MainWindow. Inside the MainWindow I currently have a Frame that will host all of my pages. I am using
myFrame.Navigate(PageToNavigateTo) in my CommandBinding Executed method when clicking a radio button. There are 8 radio buttons, one for each page. I am hiding the navigate next/back with this:
This all works well and I can change pages when clicking the radio buttons. How can I bind content inside my frame's pages to elements on my MainWindow that are outside the frame? For example, lets say on page8 is loaded in
myFrame . If I have a TextBox on that page and type some text in it. I want a label sitting outside of the frame on my MainWindow to update with that text. How can I do this? I try setting the DataContext of the frame and that doesn't work. I have
a sample app working up to this point and could post it somewhere if that would help. Thanks in advance.
View Complete Post