Class RouteRegistration<TViewModel>
Represents a registration for a route and its associated view model.
Implements
Namespace: Artemis.UI.Shared.Routing
Assembly: Artemis.UI.Shared.dll
Syntax
public class RouteRegistration<TViewModel> : IRouterRegistration where TViewModel : RoutableScreen
Type Parameters
Name | Description |
---|---|
TViewModel | The type of the view model associated with the route. |
Constructors
RouteRegistration(string)
Initializes a new instance of the RouteRegistration<TViewModel> class.
Declaration
public RouteRegistration(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of the route. |
Properties
Children
Gets or sets the child registrations of this route.
Declaration
public List<IRouterRegistration> Children { get; set; }
Property Value
Type | Description |
---|---|
List<IRouterRegistration> |
Route
Gets the route associated with this registration.
Declaration
public Route Route { get; }
Property Value
Type | Description |
---|---|
Route |
ViewModel
Gets the type of the view model associated with the route.
Declaration
public Type ViewModel { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |