# Sandbox.UI.Navigation.NavigationHost

A panel that acts like a website. A single page is always visible
but it will cache other views that you visit, and allow forward/backward navigation.

- Kind: class
- Namespace: `Sandbox.UI.Navigation`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)

## Constructors

- [`NavigationHost`](/api/Sandbox.UI.Navigation.NavigationHost/.ctor)

## Properties

- [`CurrentPanel`](/api/Sandbox.UI.Navigation.NavigationHost/CurrentPanel): The currently visible panel
- [`CurrentQuery`](/api/Sandbox.UI.Navigation.NavigationHost/CurrentQuery): The query part of the url we're currently viewing
- [`CurrentUrl`](/api/Sandbox.UI.Navigation.NavigationHost/CurrentUrl): The Url we're currently viewing
- [`DefaultUrl`](/api/Sandbox.UI.Navigation.NavigationHost/DefaultUrl): The Url we should go to when one isn't set
- [`NavigatorCanvas`](/api/Sandbox.UI.Navigation.NavigationHost/NavigatorCanvas): The panel in which we should create our pages

## Methods

- [`AddDestination`](/api/Sandbox.UI.Navigation.NavigationHost/AddDestination): Instead of finding pages by attributes, we can fill them in manually here
- [`CurrentUrlMatches`](/api/Sandbox.UI.Navigation.NavigationHost/CurrentUrlMatches)
- [`ExtractProperties`](/api/Sandbox.UI.Navigation.NavigationHost/ExtractProperties)
- [`GoBack`](/api/Sandbox.UI.Navigation.NavigationHost/GoBack): To back to the previous page. Return true on success.
- [`GoBackUntilNot`](/api/Sandbox.UI.Navigation.NavigationHost/GoBackUntilNot): Keep pressing the back button until our url doesn't match the passed wildcard string
- [`GoForward`](/api/Sandbox.UI.Navigation.NavigationHost/GoForward): Go forward, return true on success
- [`Navigate`](/api/Sandbox.UI.Navigation.NavigationHost/Navigate): Navigate to the passed url
- [`OnTemplateSlot`](/api/Sandbox.UI.Navigation.NavigationHost/OnTemplateSlot): This sucks this sucks this sucks
- [`SetProperty`](/api/Sandbox.UI.Navigation.NavigationHost/SetProperty)
