WPF Custom Navigation Buttons and calling one page from another

Posted by Jeff on Stack Overflow See other posts from Stack Overflow or by Jeff
Published on 2010-12-16T16:46:14Z Indexed on 2011/01/17 8:53 UTC
Read the original article Hit count: 150

Filed under:
|
|

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 in the history.

TIA

© Stack Overflow or respective owner

Related posts about wpf

Related posts about user-interface