Is the PhoneApplicationPage function visible during the OnNavigatedTo event?

Can someone clarify if the page is visible during the OnNavigatedTo event? The documentation for it does not mention page visibility:

MSDN OnNavigatedTo

I see that the entire sample code refreshes the page (loading the source data or reload status after the add-in).

I want to make sure that I do not want the user to see any flickering or partial data when the page state is set.

Update: . Ah, I think he is hidden. If I add a delay of 10 seconds to the OnNavigatedTo () call, I will not see the page until 10 seconds:

System.Threading.Thread.Sleep(10000); // 10 seconds

When the application starts, I see a splash screen for 10 seconds. When I receive activation, I see a black screen for 10 seconds, then my updated page comes in. Not definitely, but it looks like it's hidden.

+3
source share
1 answer

It should no longer load the visual tree, as is usually the case before Loaded.

Do not use Thread.Sleep, this will not help to verify this, since it blocks the main thread of the application user interface.

+3
source

Source: https://habr.com/ru/post/1786539/


All Articles