Template10 icon indicating copy to clipboard operation
Template10 copied to clipboard

Blank Screen after resume on Windows Mobile 10

Open keneniah opened this issue 11 years ago • 4 comments

When I start my app on my Mobile Phone running the latest Windows 10 Mobile Insider build, suspend it and resume it again, I only see a black screen and the hamburger button in the upper left corner. I can use the menu and navigate to all pages. All of them work except for the main page which shows just the black screen. Any suggestions how to fix this? Thank you for your help.

keneniah avatar Dec 05 '15 00:12 keneniah

I found out that the problem is that one of my methods is not being called. I placed it inside of OnNavigatedTo because I thought that thís method is always being called on resume. That does not seem to be true. Where can I place my method call so that I can be sure that it will always be called on resume? That would resolve my issues.

keneniah avatar Dec 05 '15 01:12 keneniah

Try placing your code in Loaded event. OnNavigatedTo will always fire when an actual navigation happens between two pages inside a frame. In your case, the page has been activated not navigated to. hopefully that made sense.

HassanElZarkawy avatar Dec 05 '15 14:12 HassanElZarkawy

I found out that the reason for this was a different one. I put my code inside of if (State.Any()) in OnNavigatedTo and this code block is not being called. I close this thread because I have to investigate further. Thanks for your help, anyway.

keneniah avatar Dec 06 '15 10:12 keneniah

Thanks for the follow-up

JerryNixon avatar Dec 07 '15 17:12 JerryNixon