I have a WPF MainWindow
where I can open a second one as follow, taking as an example this post:
var win = new CalibrationWindow(){Owner = this};
win.ShowDialog();
Rarely happens that I have the following runtime exception "cannot set owner property to a window that has not been shown previously
".
Do you have any suggestions? Thanks in advance.