开发者

wp7 application bar without navigation

开发者 https://www.devze.com 2023-02-05 16:20 出处:网络
My problem is that the application bar is not displayed on a page if I don\'t use the navigationservice to navigate to that page. My code is : frame.content = page, but I need an appl开发者_如何学Pyth

My problem is that the application bar is not displayed on a page if I don't use the navigationservice to navigate to that page. My code is : frame.content = page, but I need an appl开发者_如何学Pythonication bar. Any help would be appreciated.


After reading your comments to Derek's answer. can't you have the second page be a static empty XAML file with just some sort of container, a ContentPresenter for instance. Then the user generated content could be placed into that instead of a dynamically generated page.

That way, you can just navigate to the page and populate the content, instead of messing with frame's content property directly.


When your page is loaded, what is the value of the ApplicationBar.IsVisible property?

UPDATE: So, I would imagine that the problem is to do with updating the Content property of the PhoneApplicationFrame, rather than navigating to it using the NavigationService. Presumably, under the hood, it's doing whatever is necessary to show the application bar.

0

精彩评论

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