In my MainPage, I added a lot of images, each of which is retrieved from the server, creating an HttpWebRequest. There are also links to MainPage, clicking on these links leads the user to a new page.
The problem I am facing is that all the images are uploaded to MainPage themselves, if I click on any of the links on MainPage, a new page is created and displayed, and all requests for pending images are canceled. Now, if I go back to MainPage by clicking the back button, the uploaded images will still be uploaded.
I don’t know how to check if images are uploaded or not when I return to MainPage in the navigation stack (if I can find out that some images are not uploaded, I can request the server again for the uploaded images). For this I need a general solution. Since the parent-child relationship in the MainPage content layout is dynamic, which means I don’t know the image control hierarchy, the image control can be a descendant of the canvas, which in turn added content to the MainPage grid or images can be added to one pan / rotate section, which , in turn, added to the MainPage Content grid, etc., ....
source share