Object reference error in NavigationService.Navigate

后端 未结 2 877
甜味超标
甜味超标 2021-01-21 22:04

Inside my MainPage constructor I\'m using NavigationService to navigate to another page, but I\'m getting the error:

object refe

2条回答
  •  旧巷少年郎
    2021-01-21 22:48

    The page you're navigating to hasn't yet been created in the c'tor. "Loaded" fires after the objects are all created, and is the right spot for doing things like navigating to another page and such.

提交回复
热议问题