INavigationEntry interface

Namespace Runic.Navigation · Runic.Navigation 0.7.0-preview.5

public interface INavigationEntry

The content-type-independent view of a NavigationEntry, for hosts that present a region without knowing its content type. Only NavigationEntry implements it.

Properties

Content

object Content { get; }

Gets the entry's content.

Id

NavigationEntryId Id { get; }

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

Ownership

NavigationOwnership Ownership { get; }

Gets whether the navigator owns the content.

Services

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

NavigationEntryState State { get; }

Gets the entry's current state.