NavigationEntry class

Namespace Runic.Navigation in Runic.Navigation 0.23.0

public abstract class NavigationEntry

One entry of a navigation region, independent of the region's content type: its stable id, content, ownership and state. Hosts that present a region without knowing its content type use it; NavigationEntry is the typed entry, and every entry is one.

Remarks

Only the navigator creates entries, so the class can't be derived from outside Runic.Navigation, and members can be added to it in a minor release.

Properties

Content

public object Content { get; }

Gets the entry's content.

Id

public NavigationEntryId Id { get; }

Gets the entry's id, unique within its navigator.

Ownership

public NavigationOwnership Ownership { get; }

Gets whether the navigator owns the content.

RetainView

public bool? RetainView { get; }

Gets whether a presentation that can keep views keeps this entry's view while the entry is retained: NavigationRequestOptions.RetainView of the Push, Replace or Reset that created the entry, or null to follow the presentation's own setting, such as NavigationHost.RetainViews in Runic.Navigation.Wpf. Initial entries have no request and return null.

Services

public IServiceProvider Services { get; }

Gets the entry's service provider: its own service scope when the navigator created one (RunicNavigatorOptions.CreateEntryScopes), otherwise the navigator's RunicNavigator.Services, otherwise an empty provider. After an entry with its own scope retires, resolving from it throws ObjectDisposedException.

State

public NavigationEntryState State { get; }

Gets the entry's current state.

Methods

ToString

public override string ToString()

Inherits documentation from Object.ToString.