Class Route
Provides methods for building routes.
Assembly: Singulink.UI.Navigation.dll
Syntax
public static class Route
Methods
| Name |
Description |
|
Build(string)
|
Builds a route with no path parameters from the specified string.
|
|
BuildGroup<TParam>()
|
Creates a new route group builder for the specified parameter type.
|
|
Build<TParam>(Func<TParam, InterpolatedRouteHandler>, string)
|
Builds a parameterized route from the specified route function that returns the interpolated route.
|
|
GetRoute(IConcreteRootRoutePart, string?)
|
Gets the route string represented by the specified root route part.
|
|
GetRoute(IEnumerable<IConcreteRoutePart>, string?)
|
Gets the route string represented by the specified route parts, optionally including an anchor.
The query string is included for the leaf route part (if any).
|
|
GetRoutePartial(INavigator, string?)
|
Gets the partial route that has the same parts as the navigator's current route but with the specified anchor.
|
|
GetRoutePartial<TParentViewModel>(INavigator, IConcreteChildRoutePart<TParentViewModel>, string?)
|
Gets the route string for the specified partial route. The current route must contain the specified parent view model type otherwise an InvalidOperationException is thrown.
|
|
GetRoutePartial<TParentViewModel, TChildViewModel1>(INavigator, IConcreteChildRoutePart<TParentViewModel, TChildViewModel1>, IConcreteChildRoutePart<TChildViewModel1>, string?)
|
Gets the route string for the specified partial route. The current route must contain the specified parent view model type otherwise an InvalidOperationException is thrown.
|
|
GetRoutePartial<TParentViewModel, TChildViewModel1, TChildViewModel2>(INavigator, IConcreteChildRoutePart<TParentViewModel, TChildViewModel1>, IConcreteChildRoutePart<TChildViewModel1, TChildViewModel2>, IConcreteChildRoutePart<TChildViewModel2>, string?)
|
Gets the route string for the specified partial route. The current route must contain the specified parent view model type otherwise an InvalidOperationException is thrown.
|
|
GetRoute<TRootViewModel>(IConcreteRootRoutePart<TRootViewModel>, IConcreteChildRoutePart<TRootViewModel>, string?)
|
Gets the route string represented by the specified root and child route parts.
|
|
GetRoute<TRootViewModel, TChildViewModel1>(IConcreteRootRoutePart<TRootViewModel>, IConcreteChildRoutePart<TRootViewModel, TChildViewModel1>, IConcreteChildRoutePart<TChildViewModel1>, string?)
|
Gets the route string represented by the specified root and child route parts.
|
|
GetRoute<TRootViewModel, TChildViewModel1, TChildViewModel2>(IConcreteRootRoutePart<TRootViewModel>, IConcreteChildRoutePart<TRootViewModel, TChildViewModel1>, IConcreteChildRoutePart<TChildViewModel1, TChildViewModel2>, IConcreteChildRoutePart<TChildViewModel2>, string?)
|
Gets the route string represented by the specified root and child route parts.
|