Runic.Navigation
Runs after the entry became current and the change was presented, outside model turns: on every commit that makes the entry its region's current entry, after
INavigationAware.OnNavigatedTo.The arrival hook of an entry created with typed input (
NavigationTarget.Createand the region methods that wrap it), called with that input instead ofINavigationArrived.Tells content when its entry becomes its region's current entry and when it stops being current.
Can veto a transition that retains or retires an entry.
Initializes a new entry once, before it first becomes current.
Initializes a new entry created with typed input by
NavigationTarget.CreateorNavigationTarget.Create.The member-less base of the hooks that receive a target's typed input,
INavigationInitializeandINavigationArrived, so the input targets accept content that implements either.The non-generic base of every
INavigationInitialize, so the navigator can recognize content that initializes with input through an interface check.A presentation of a navigator's content, attached with
RunicNavigator.AttachPresentation.Can veto a transition that departs from a whole region, independent of the entries' content: for example a guard that asks once whether to discard unsaved work anywhere in a window.
Runs when a retained entry becomes current again.
Maps route paths, such as
customers/42/invoices/7, to navigation targets, and the entries of a region back to their route paths.A navigation target created by
NavigationTarget.Owns short, serialized mutations and reads for one mutable application-model graph.
Represents one ownership claim over a model graph's execution context.
Optionally implemented by an
IRunicModelContextthat reports when it closes, for example on disposal or when its UI thread shuts down.Optionally implemented by an
IRunicModelContextthat runs the navigator's hooks in its context, such asRunicModelContextand a UI dispatcher context.Optionally implemented by an
IRunicModelContextwhose presentation renders after a turn, such as a UI dispatcher context.A departure guard that asks before unsaved changes are lost, and discards them only when the departure commits.
How a region admits a request while an earlier request of the region runs.
Describes an entry becoming current: a retained entry resuming (
INavigationResume.ResumeAsync,INavigationAware.OnNavigatedTo), or a new entry's first commit (INavigationAware.OnNavigatedTo).How the arrival hooks of a committed transition ended (
Committed.Arrival).What a child region does while the entry that owns it is retained.
How a
NavigationRegion.PushForResultrequest ended.The result entry called
NavigationEntryContext.CompleteAsync, and the transition that returned from it withValuecommitted.The request ended without a result: its push did not commit, the entry retired without completing, the caller's token was cancelled after the commit, or the navigator closed.
Describes a departure that a guard can veto.
Whether a departing entry is retained or retired.
One entry of a navigation region, independent of the region's content type: its stable id, content, ownership and state.
One entry of a navigation region: its stable id, content, ownership and state.
Gives an entry's content its identity, state, retirement signal, model context and late-completion operations.
Identifies one navigation entry.
An entry of a
NavigationPath: its route and the regions and selections its content owns.The lifecycle state of a navigation entry.
The data of
NavigationEntryContext.StateChanged.Describes the current entry stopping being current (
INavigationAware.OnNavigatedFrom).The operation that caused a departure, resume or result.
A summary of a
NavigationResultwithout its .NET content and exception, so a ViewModel can return it to a Runic View, for example as the output of a back command.How a navigation request ended, as reported by
NavigationOutcome.Kind.Whether the navigator owns an entry's content.
A serializable navigation state: the regions and selections of a navigator that no entry owns, each with its entries and, below each entry, the regions and selections its content owns.
The phase in which a transition failed.
One navigation region, independent of its content type, for hosts that present a region without knowing it.
One navigation region: a stack of typed entries whose top is
NavigationRegion.Current.Describes a departure from a region that a
INavigationRegionGuardcan veto.When a region guard is asked.
When a region or navigator guard is asked relative to the departure guards of the entries.
Configures a region: what happens to it while the entry that owns it is retained, and how it admits requests.
A region of a
NavigationPath: its entries, from the bottom of its history to the current entry.Why a navigation request was rejected.
Options of one navigation request.
A part of a
NavigationPaththat was not restored.Why a part of a
NavigationPathwas not restored.Configures
RunicNavigator.RestoreAsyncand the region and selection restores.What
RunicNavigator.RestoreAsynccould not restore.The outcome of a navigation request.
The transition committed.
The transition failed; history is unchanged.
The transition was rejected; history is unchanged.
A later request of the region, or of its parent, replaced this one before it committed.
A push that waits for a typed result from the pushed entry.
Reads route paths from deep links: URLs with the application's scheme or of its web-link hosts.
The route map that
NavigationRouteMapBuilderbuilds: typed route templates mapped to navigation targets.Declares the routes of a
NavigationRouteMap.How
NavigationRegion.OpenRouteAsyncopens a route in a region.Registers a
NavigationRouteMap.The parameter values of a route:
Int32,Int64,String,GuidandBooleanvalues by parameter name, compared without regard to case.Which one of an owner's sibling regions is presented, such as the tab of a page whose tabs each keep their own stack.
Configures a selection created by
RunicNavigator.CreateSelection.A selection of a
NavigationPath, such as document tabs: each region of it by position, and the selected one.Creates navigation targets and states who owns their content.
What
RunicNavigator.RestoreAsyncdoes with an entry whose route no route of the map matches.Writes the drafts that presentations of a model context hold before a departure is decided: a web page's field that waits to write what the user typed (
commit: "pause"), for example.The editing state of a form in a ViewModel of any MVVM framework: a baseline snapshot of the edited values, whether the current values differ from it (
RunicEditSession.IsDirty, with change notification),RunicEditSession.Acceptafter a save andRunicEditSession.Revertto discard.A host-neutral serial execution context for a ViewModel graph.
Associates each model identity with the context that owns its mutations.
Describes an exception that a model context reports through
IRunicModelContext.UnhandledTurnException: a posted turn that threw, a posted turn that the context dropped when it closed, or a close callback that threw.Registers the window navigator.
Owns the navigation regions and entries of one window.
Configures a
RunicNavigator.