In our WPF application We open one window for authentication as showdialog and set owner as Mainwindow. After authentication we open another window as showdialog and set owner as Mainwindow then close the previous window using coding. When close the second window manually, the focus changed automatically to some other applications. Any help on this is highly appreciated.
Thanks