For Example I am having 2 pages in UWP application. with the names Mainpage and HomePage. Now I am using below statement for navigating to HomePage from MainPage.
Frame.Navigate(typeof(HomePage))
Now I want to dispose objects and memory of my MainPage. How Can we do that in UWP applicaiton.
Please provide your suggestions to solve this issue.