Class RouteGroupBuilder<TParam>
Represents a group of routes that target the same parameter type. Add routes then call Child<TParentViewModel, TChildViewModel>() or Root<TViewModel>() to create route part groups from this builder.
Namespace: Singulink.UI.Navigation
Assembly: Singulink.UI.Navigation.dll
Syntax
public class RouteGroupBuilder<TParam> where TParam : notnull
Type Parameters
| Name | Description |
|---|---|
| TParam | The full parameter type. |
Methods
| Name | Description |
|---|---|
| Add(Func<TParam, InterpolatedRouteHandler>, string) | Adds a parameterized route from the specified route function that returns the interpolated route. |
| Add(string) | Adds a route with no path parameters from the specified string. |
| Child<TParentViewModel, TChildViewModel>() | Creates a child route part group for the specified parent and child view model types. |
| Root<TViewModel>() | Creates a root route part group for the specified view model type. Route builders are evaluated in order and the one with the most satisfied path holes is used when creating a concrete route. |