Method GetPartialRoute
GetPartialRoute<TParentViewModel>(IConcreteChildRoutePart<TParentViewModel>, string?)
Gets the route that NavigatePartialAsync<TParentViewModel>(IConcreteChildRoutePart<TParentViewModel>, string?) would navigate to, without navigating. Useful for opening a child route elsewhere, such as in a new window. The current route must contain a view with the specified parent view model type otherwise an InvalidOperationException is thrown.
Declaration
public string GetPartialRoute<TParentViewModel>(IConcreteChildRoutePart<TParentViewModel> childRoutePart, string? anchor = null) where TParentViewModel : class
Parameters
| Type | Name | Description |
|---|---|---|
| IConcreteChildRoutePart<TParentViewModel> | childRoutePart | |
| string | anchor |
Returns
| Type | Description |
|---|---|
| string |
Type Parameters
| Name | Description |
|---|---|
| TParentViewModel |
Implements
GetPartialRoute<TParentViewModel>(ConcretePartialRoute<TParentViewModel>, string?)
Gets the route that NavigatePartialAsync<TParentViewModel>(ConcretePartialRoute<TParentViewModel>, string?) would navigate to, without navigating. The current route must contain a view with the specified parent view model type otherwise an InvalidOperationException is thrown.
Declaration
public string GetPartialRoute<TParentViewModel>(ConcretePartialRoute<TParentViewModel> route, string? anchor = null) where TParentViewModel : class
Parameters
| Type | Name | Description |
|---|---|---|
| ConcretePartialRoute<TParentViewModel> | route | |
| string | anchor |
Returns
| Type | Description |
|---|---|
| string |
Type Parameters
| Name | Description |
|---|---|
| TParentViewModel |