I've a wpf application. The mainWindow is composed of frames and in each frame I have a page. When I close a Page I need to do some actions as cleanupcode, I tried to write this code in Page_Unloaded as followsI've a wpf application. The mainWindow is compo