Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Frame.NavigationUIVisibility Property

Gets or sets when the Frame can show its navigation UI. This is a dependency property.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

'Declaration
Public Property NavigationUIVisibility As NavigationUIVisibility
'Usage
Dim instance As Frame
Dim value As NavigationUIVisibility

value = instance.NavigationUIVisibility

instance.NavigationUIVisibility = value
/** @property */
public NavigationUIVisibility get_NavigationUIVisibility ()

/** @property */
public void set_NavigationUIVisibility (NavigationUIVisibility value)

public function get NavigationUIVisibility () : NavigationUIVisibility

public function set NavigationUIVisibility (value : NavigationUIVisibility)

<object NavigationUIVisibility="NavigationUIVisibility" .../>

Property Value

A NavigationUIVisibility value that specifies when the Frame can show its navigation UI. The default value is Automatic.

By default, a Frame shows its navigation UI automatically when the first entry is added to navigation history. The navigation UI subsequently remains visible, with the back or forward navigation buttons becoming appropriately enabled or disabled to reflect the number of entries in back and forward navigation history.

You can ensure that navigation UI is always visible by setting:

  1. NavigationUIVisibility to Visible

  2. JournalOwnership to OwnsJournal

You set NavigationUIVisibility to Hidden if you want to hide the navigation UI. This might be the case when navigation UI doesn’t make sense with the content you are displaying from a Frame, or because you are providing your own navigation UI.

The following example shows how always show the navigation chrome of a Frame by setting NavigationUIVisibility to NavigationUIVisibility.

this.hostFrame.NavigationUIVisibility = NavigationUIVisibility.Visible;

<Frame Name="hostFrame" NavigationUIVisibility="Visible"/>

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft