简体   繁体   中英

Frame.Navigate not working

I recently added a new page in the project and am trying to Navigate to it through a button click event using Frame.Navigate(typeof()). It isn't working. The code runs and compiles with no errors and I've even added breakpoints to see whether it's executing the Navigate statement. It does but it's returning false. The page stays as is. I then tried replacing it to another page which was originally there in my project and the statement ran just fine for that. Please Help!

It is hard to figure out the problem with given description. But, you can handle the NavigationFailed event to respond to navigation failure or You can handle the failure directly in the event handler, or you can set the NavigationFailedEventArgs.Handled property to true and use the Navigate method return value to respond to the failure.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM