Hi all,
I am a new in WPF. And, I haven't found the answer after searching the forum.
How can I find the child windows because only get WpfApplication.MainWindow and WpfApplication.Windows.Count=1 sometimes?
Then, I try to call some refresh or update functions as follows
wpfApplication.MainWindow.VisualTree.Refresh();
wpfApplication.MainWindow.VisualTree.Root.Refresh();
wpfApplication.MainWindow.UpdateInterHostLinks();
wpfApplication.MainWindow.ContentWindow.RefreshChildren();
wpfApplication.MainWindow.RefreshVisualTrees();
wpfApplication.MainWindow.ContentWindow.Update();
wpfApplication.MainWindow.Find.RefreshRoot();
However, it doesn't work. How can I get the child window every time? Many thanks