Class RouteRegistration<TViewModel>
Represents a registration for a route and its associated view model.
public class RouteRegistration<TViewModel> : IRouterRegistration where TViewModel : RoutableScreen
Type Parameters
TViewModelThe type of the view model associated with the route.
- Inheritance
-
objectRouteRegistration<TViewModel>
- Implements
Constructors
RouteRegistration(string)
Initializes a new instance of the RouteRegistration<TViewModel> class.
public RouteRegistration(string path)
Parameters
pathstringThe path of the route.
RouteRegistration(string, List<IRouterRegistration>)
Initializes a new instance of the RouteRegistration<TViewModel> class.
public RouteRegistration(string path, List<IRouterRegistration> children)
Parameters
pathstringThe path of the route.
childrenList<IRouterRegistration>The children of the route.
Properties
Children
Gets or sets the child registrations of this route.
public List<IRouterRegistration> Children { get; set; }
Property Value
Route
Gets the route associated with this registration.
public Route Route { get; }
Property Value
ViewModel
Gets the type of the view model associated with the route.
public Type ViewModel { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.