ShowsNavigationUI Property

Page.ShowsNavigationUI Property


Gets or sets a value that indicates whether the navigation UI of a NavigationWindow on Microsoft Internet Explorer 6 is visible.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public bool ShowsNavigationUI { get; set; }

Property Value

Type: System.Boolean

true if the navigation UI of a host NavigationWindow is visible; otherwise, false.

Exception Condition

The ShowsNavigationUI property is inspected on a Page instance that is not hosted by a Window, NavigationWindow, or a browser.

NavigationWindow displays navigation UI by default to enable browser-style forwards and backwards navigation. If a page is set as the StartupUri, Application automatically opens a NavigationWindow to host the page in. If the page does not want to use the default NavigationWindow navigation UI, it can set ShowsNavigationUI to false.


Because WPF does not integrate with the navigation UI for Microsoft Internet Explorer 6, it provides its own navigation UI, which can be shown or hidden by setting ShowsNavigationUI. WPF does integrate with the Windows Internet Explorer 7 navigation UI, so setting ShowsNavigationUI on pages in Windows Internet Explorer 7 has no effect.

The following example shows how to use XAML to hide the navigation UI of a NavigationWindow.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft