Check out example codes for "how to detected WindowCloseEvent in other window wpf". It will help you in understanding the concepts better.

Code Example 1

Window.Closed += Evenfunction;

Learn ReactJs, React Native from akashmittal.com