Using EnvironmentManager.Instance.SendMessage(new Message(MessageId.SmartClient.MultiWindowCommand, data), null, null);We can spawn a Milestone window.I wanted to know if we can use a event listener to detect when the spawned window is closed.

I tried looking at documentation, that didnt help much. Hoping devs here can please point out to some hope for me. Thanks

I know that there are message for changing views, maybe there is something useful for you.

Please try to use the Message Test sample and see on the message tracer if a message happens that you can use for this.

https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/messagetester/readme.html&tree=tree_1.html

You can always see if the window is there by use of the configuration, if there is a message but it is not conclusive you can check the configuration. Please explore the Configuration Dump plugin sample.

https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/configdump/readme.html&tree=tree_1.html