I've got a WPF application wich embedded IronPython. I'm trying to access my WPF page from Python so I can modify controls defined in XAML from Python but can't manage to do it. I'm using a NavigationWindow to transition from page to page, so I'd like to be able to access the current page pointed to by the NavigationWindow.
I'm capable of accessing controls from a separate Window via Application.Current.MainWindow, but have had no success trying to access a page in the way described above.
Thanks!
Navigation window is a content control, if you want to get the page from it you can just use the .content property on the navigation window instance. Or just use the content property from the NavigationEventArgs within the onNavigated function.
How to get WPF Page pointed by NavigationWindow from code