|Is it possible to get the MainWindow from the exeucting assembly?
I am opening a dialog contained in another assembly and in that dialog I want to set the Owner to the Main Window of my executing app.
I know in the dialog I can do
var callingAssembly = Assembly.GetCallingAssembly();
which gives me the assembly of my main app. But Can I then somehow get access to that assembly's Application.Current.MainWindow?
What I'd really like, in my dialog, is something like this:
var window =
this.Owner = window;
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
modified 23-Jul-21 15:42pm.