Frame.NavigationUIVisibility Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets when the Frame can show its navigation UI.
public:
property System::Windows::Navigation::NavigationUIVisibility NavigationUIVisibility { System::Windows::Navigation::NavigationUIVisibility get(); void set(System::Windows::Navigation::NavigationUIVisibility value); };
public System.Windows.Navigation.NavigationUIVisibility NavigationUIVisibility { get; set; }
member this.NavigationUIVisibility : System.Windows.Navigation.NavigationUIVisibility with get, set
Public Property NavigationUIVisibility As NavigationUIVisibility
A NavigationUIVisibility value that specifies when the Frame can show its navigation UI. The default value is Automatic.
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;
Me.hostFrame.NavigationUIVisibility = NavigationUIVisibility.Visible
<Frame Name="hostFrame" NavigationUIVisibility="Visible"/>
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:
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.
Item | Value |
---|---|
Identifier field | NavigationUIVisibilityProperty |
Metadata properties set to true |
None |
Produkt | Verzie |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: