Method Then
Then<TRootViewModel, TChildViewModel>(IConcreteRootRoutePart<TRootViewModel>, IConcreteChildRoutePart<TRootViewModel, TChildViewModel>)
Returns a route made up of the specified root route part followed by the specified child route part. Chain further levels with Then<TChildViewModel>(IConcreteChildRoutePart<TLeafViewModel, TChildViewModel>).
Declaration
public static ConcreteRoute<TChildViewModel> Then<TRootViewModel, TChildViewModel>(this IConcreteRootRoutePart<TRootViewModel> rootRoutePart, IConcreteChildRoutePart<TRootViewModel, TChildViewModel> childRoutePart) where TRootViewModel : class where TChildViewModel : class
Parameters
| Type | Name | Description |
|---|---|---|
| IConcreteRootRoutePart<TRootViewModel> | rootRoutePart | The concrete root route part. |
| IConcreteChildRoutePart<TRootViewModel, TChildViewModel> | childRoutePart | A concrete child route part whose parent view model type is the root route part's view model type. |
Returns
| Type | Description |
|---|---|
| ConcreteRoute<TChildViewModel> |
Type Parameters
| Name | Description |
|---|---|
| TRootViewModel | The view model type of the root route part. |
| TChildViewModel | The view model type of the child route part. |
Then<TRootViewModel>(IConcreteRootRoutePart<TRootViewModel>, IConcreteChildRoutePart<TRootViewModel>)
Returns a route made up of the specified root route part followed by the specified child route part. The child's view model type is not known statically, so the returned route cannot be extended further.
Declaration
public static ConcreteRoute Then<TRootViewModel>(this IConcreteRootRoutePart<TRootViewModel> rootRoutePart, IConcreteChildRoutePart<TRootViewModel> childRoutePart) where TRootViewModel : class
Parameters
| Type | Name | Description |
|---|---|---|
| IConcreteRootRoutePart<TRootViewModel> | rootRoutePart | The concrete root route part. |
| IConcreteChildRoutePart<TRootViewModel> | childRoutePart | A concrete child route part whose parent view model type is the root route part's view model type. |
Returns
| Type | Description |
|---|---|
| ConcreteRoute |
Type Parameters
| Name | Description |
|---|---|
| TRootViewModel | The view model type of the root route part. |
Then<TParentViewModel, TFirstChildViewModel>(IConcreteChildRoutePart<TParentViewModel, TFirstChildViewModel>, IConcreteChildRoutePart<TFirstChildViewModel>)
Returns a partial route made up of the specified child route part followed by the specified grandchild route part. The grandchild's view model type is not known statically, so the returned partial route cannot be extended further.
Declaration
public static ConcretePartialRoute<TParentViewModel> Then<TParentViewModel, TFirstChildViewModel>(this IConcreteChildRoutePart<TParentViewModel, TFirstChildViewModel> firstChildRoutePart, IConcreteChildRoutePart<TFirstChildViewModel> childRoutePart) where TParentViewModel : class where TFirstChildViewModel : class
Parameters
| Type | Name | Description |
|---|---|---|
| IConcreteChildRoutePart<TParentViewModel, TFirstChildViewModel> | firstChildRoutePart | The concrete child route part beneath the parent view model. |
| IConcreteChildRoutePart<TFirstChildViewModel> | childRoutePart | A concrete child route part whose parent view model type is the first child route part's view model type. |
Returns
| Type | Description |
|---|---|
| ConcretePartialRoute<TParentViewModel> |
Type Parameters
| Name | Description |
|---|---|
| TParentViewModel | The view model type that the first child route part belongs to. |
| TFirstChildViewModel | The view model type of the first child route part. |
Then<TParentViewModel, TFirstChildViewModel, TChildViewModel>(IConcreteChildRoutePart<TParentViewModel, TFirstChildViewModel>, IConcreteChildRoutePart<TFirstChildViewModel, TChildViewModel>)
Returns a partial route made up of the specified child route part followed by the specified grandchild route part, for use with partial
navigation beneath a parent of type TParentViewModel. Chain further levels with
Then<TChildViewModel>(IConcreteChildRoutePart<TLeafViewModel, TChildViewModel>).
Declaration
public static ConcretePartialRoute<TParentViewModel, TChildViewModel> Then<TParentViewModel, TFirstChildViewModel, TChildViewModel>(this IConcreteChildRoutePart<TParentViewModel, TFirstChildViewModel> firstChildRoutePart, IConcreteChildRoutePart<TFirstChildViewModel, TChildViewModel> childRoutePart) where TParentViewModel : class where TFirstChildViewModel : class where TChildViewModel : class
Parameters
| Type | Name | Description |
|---|---|---|
| IConcreteChildRoutePart<TParentViewModel, TFirstChildViewModel> | firstChildRoutePart | The concrete child route part beneath the parent view model. |
| IConcreteChildRoutePart<TFirstChildViewModel, TChildViewModel> | childRoutePart | A concrete child route part whose parent view model type is the first child route part's view model type. |
Returns
| Type | Description |
|---|---|
| ConcretePartialRoute<TParentViewModel, TChildViewModel> |
Type Parameters
| Name | Description |
|---|---|
| TParentViewModel | The view model type that the first child route part belongs to. |
| TFirstChildViewModel | The view model type of the first child route part. |
| TChildViewModel | The view model type of the appended child route part. |