Api Sandbox UI Navigation NavigationHost
class

NavigationHost

public class NavigationHost : Panel

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.

Constructors

NavigationHost()

Properties

Name Type Description
CurrentPanel Panel The currently visible panel
CurrentUrl String The Url we're currently viewing
DefaultUrl String The Url we should go to when one isn't set
NavigatorCanvas Panel The panel in which we should create our pages

Methods

virtual Void OnTemplateSlot(INode element, String slotName, Panel panel)

This sucks this sucks this sucks

Void AddDestination(String url, Type type)

Instead of finding pages by attributes, we can fill them in manually here

Panel Navigate(String url, Boolean redirectToDefault = True)

Navigate to the passed url

ValueTuple<String, String>> ExtractProperties(String[] parts, String url)
Boolean CurrentUrlMatches(String url)
virtual Void SetProperty(String name, String value)
virtual Boolean GoBackUntilNot(String wildcard)

Keep pressing the back button until our url doesn't match the passed wildcard string

virtual Boolean GoBack()

To back to the previous page. Return true on success.

virtual Boolean GoForward()

Go forward, return true on success

Fields

Name Type Description
CurrentQuery String The query part of the url
Assembly: Base Library Namespace: Sandbox.UI.Navigation Full Name: Sandbox.UI.Navigation.NavigationHost