Process p = new Process(); p.StartInfo.FileName = "SubWPF.exe"; p.StartInfo.WindowStyle = ProcessWindowStyle.Normal; p.StartInfo.UseShellExecute = false; p.StartInfo.Verb = "runas"; p.Start();
The issue is in the background I have the MainWPF window. I need the subwpf to be always on top and prevent the user from clicking background buttons of mainwpf. To be precise, the behaviour of a showdialog() needs to be achieved. What I have tried: I have tried using TopMost=true for subwpf home window, but it didn't achieve the functionality as in my subwpf once the user selects a file in the home window, this window is closed and another window showing the contents of file is displayed. Setting TopMost=true is not allowing me to close the file selection window.
IsEnabled
false
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)