tags:

views:

634

answers:

1

Hi,
I'm working on a page based WPF application, and I want to change the size of the navigation bar in the frame. I set NavigationUIVisibility="Visible" in order to see the navigation bar, now how do I change properties on the navigation bar like it's size?

Thanks,
Roy

+2  A: 

The Navigation Bar is hard to change. I recommend you to create you own.
Create you own buttons and then use

myFrame.NavigationService.GoBack()
myFrame.NavigationService.GoForward()

Example:

Private Sub PreviousPageCommand_Executed(ByVal sender As Object, _
                                     ByVal e As ExecutedRoutedEventArgs)
    MainFrame.NavigationService.GoBack()
End Sub

Private Sub PreviousPageCommand_CanExecute(ByVal sender As Object, _
                            ByVal e As CanExecuteRoutedEventArgs)
    If Not MainFrame Is Nothing Then
        e.CanExecute = MainFrame.NavigationService.CanGoBack
    Else
        e.CanExecute = False
    End If
End Sub

Private Sub NextPageCommand_Executed(ByVal sender As Object, _
                                     ByVal e As ExecutedRoutedEventArgs)
    MainFrame.NavigationService.GoForward()
End Sub

Private Sub NextPageCommand_CanExecute(ByVal sender As Object, _
                                    ByVal e As CanExecuteRoutedEventArgs)
    If Not MainFrame Is Nothing Then
        e.CanExecute = MainFrame.NavigationService.CanGoForward
    Else
        e.CanExecute = False
    End If
End Sub
Eduardo Molteni
This is what I wound up doing anyway...Thanks!
LPCRoy