Can't navigate to my password page.
-
Tuesday, May 15, 2012 7:57 PM
I have an app that I want password protected. When the app starts, I check to see if the user is authenticated. If the user is not authenticated, I wan't to bring up my customized password page.
It seems that I'm having a problem bringing up the password page because the main page is still loading when I call for the navigation to the password page.
My code is like this.
Protected Overrides Sub OnNavigatedTo(e as Navigation.NavigationEventArgs)
If isAuthenticated = false then
Frame.Navigate(GetType(EnterPassPage))
End If
End Sub
When the code runs, the password page never comes up. However, if I put a button on the page and but the same code in it, the password page comes up.
Is there anyway I can get the password page to come up in my app?
Thanks.
Mike
"MC"
All Replies
-
Tuesday, May 15, 2012 8:41 PMModerator
Why don't you try the Page.Loaded event?Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.- Marked As Answer by Tobore Tuesday, May 15, 2012 8:53 PM
-
Tuesday, May 15, 2012 8:54 PMOK. Thanks. I'm new to XAML and didn't know that loaded was even available. Go it now.
"MC"


