开发者

Is the PhoneApplicationPage visible during OnNavigatedTo event?

Can anyone clarify, is the page visible during the OnNavigatedTo event ? The documentation for it doesn't mention page visibility at all:

MSDN OnNavigatedTo

I see all the sample code updates the page (initial data loading, or re-loading state after tombstoning).

I want to make sure, as I don' want the user to see any flickering, or partial data as the page state is set.

Update: Ahh, I think it is hidden. If I add a delay of 10 seconds in to the OnNavigatedTo() call, then I don't see the page until after the 10 seconds:

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

When the app starts I see the splash screen for 10 seconds. When I get re-activated I s开发者_如何学Cee a black screen for 10 seconds then my updated page snaps in. Not definitive, but looks like it is hidden.


It should not already have loaded the visual tree, as usually this will happen before Loaded.

Do not that using Thread.Sleep isn't going to help verify this, since this blocks the primary UI thread of the app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜