开发者

WPF Custom Navigation Buttons and calling one page from another

开发者 https://www.devze.com 2023-01-31 03:51 出处:网络
I have a window which contains a Frame which references a \'home\' page that has buttons on it.When a button is clicked I want another page to show depending on which button was pressed.I attempted to

I have a window which contains a Frame which references a 'home' page that has buttons on it. When a button is clicked I want another page to show depending on which button was pressed. I attempted to use

NavigationService.Navigate('mynextpage.xaml')

and that works however, I want to use a customized navigation panel. I call

this.ShowsNavigationUI = false;

on my 'home' page but the bar still shows. Is there a way to accomplish what I am trying to do?

My page with the frame is a window so I do not know how to disable the Navigation bar there where I guess it is coming from.

Further testing shows that the ShowsNavigationUI property is false yet the nav bar shows itself in the parent window once there is a second page to go to (showing the 'home' page i开发者_JS百科n the history.

TIA


if i understand you correctly you want to hide the navigation chrome of a Frame, to do so set

<Frame Name="hostFrame" NavigationUIVisibility="Hidden"/>
0

精彩评论

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