开发者

WP7: navigating to custom made page

开发者 https://www.devze.com 2023-01-23 08:00 出处:网络
I created a new page, I have the skeleton in .xaml, but the content of the page is dynamically generated. How am I able to navigate to this page ? Is there another way than setting the root frame\'s c

I created a new page, I have the skeleton in .xaml, but the content of the page is dynamically generated. How am I able to navigate to this page ? Is there another way than setting the root frame's content to the new page? In the latter case I cannot handle the b开发者_如何学编程ack key press event on the new page, because the mainpage's backkeypress event is fired instead :(


Try

Page.NavigationService.Navigate(new Uri("/yourpage.xaml", UriKind.Relative))
0

精彩评论

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

关注公众号