I have tested my app for memory usage, and suddenly seen a spike in memory, when I load popups, further it does not seem to go down after I try to close it.
I add the popup from the first pages cs file (the one I navigate away from):
Popup popup;
if (!SecondScreen.SecondScreenLoaded)
{
Popup PopupTest = new Popup();
PopupTest.IsOpen = true;
LayoutRoot.Children.Add(PopupTest);
}
and when the second page is done I wish to delete the popup, and thus free up memory Therefore I am unsure of how to delete a popup correctly in c#, can anyone please tell me this?
Popup
s in WP8. Would you consider an alternative solution? – Facility