Export (0) Print
Expand All

Frame.NavigationUIVisibility Property

Gets or sets when the Frame can show its navigation UI.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public NavigationUIVisibility NavigationUIVisibility { get; set; }
<object NavigationUIVisibility="NavigationUIVisibility" .../>

Property Value

Type: System.Windows.Navigation.NavigationUIVisibility
A NavigationUIVisibility value that specifies when the Frame can show its navigation UI. The default value is Automatic.

Identifier field

NavigationUIVisibilityProperty

Metadata properties set to true

None

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 demonstrates how to make sure the navigation chrome of a Frame is always visible by setting NavigationUIVisibility to Visible.

this.hostFrame.NavigationUIVisibility = NavigationUIVisibility.Visible;
<Frame Name="hostFrame" NavigationUIVisibility="Visible"/>

.NET Framework

Supported in: 4.5.3, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft