Class NavigationViewModel
ViewModel providing an implementing of INavigator and binding with
javascript routing API.
Originally designed to work with vue-router.
Inheritance
System.Object
NavigationViewModel
Implements
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.INotifyPropertyChanging
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Neutronium.BuildingBlocks.Application.dll
Syntax
public class NavigationViewModel : ViewModel, INotifyPropertyChanged, INotifyPropertyChanging, INavigator
Constructors
|
Improve this Doc
View Source
NavigationViewModel(Lazy<IServiceLocator>, IRouterSolver, String)
Declaration
public NavigationViewModel(Lazy<IServiceLocator> serviceLocator, IRouterSolver routerSolver, string initialRoute = null)
Parameters
Type |
Name |
Description |
System.Lazy<CommonServiceLocator.IServiceLocator> |
serviceLocator |
|
IRouterSolver |
routerSolver |
|
System.String |
initialRoute |
|
Properties
|
Improve this Doc
View Source
AfterResolveCommand
Declaration
public ISimpleCommand<string> AfterResolveCommand { get; }
Property Value
Type |
Description |
Neutronium.MVVMComponents.ISimpleCommand<System.String> |
|
|
Improve this Doc
View Source
BeforeResolveCommand
Declaration
public IResultCommand<string, BeforeRouterResult> BeforeResolveCommand { get; }
Property Value
Type |
Description |
Neutronium.MVVMComponents.IResultCommand<System.String, BeforeRouterResult> |
|
|
Improve this Doc
View Source
Route
Declaration
public string Route { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
Navigate(Object, String)
Declaration
public Task Navigate(object viewModel, string routeName)
Parameters
Type |
Name |
Description |
System.Object |
viewModel |
|
System.String |
routeName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Navigate(String)
Declaration
public Task Navigate(string routeName)
Parameters
Type |
Name |
Description |
System.String |
routeName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Navigate(Type, NavigationContext)
Declaration
public Task Navigate(Type type, NavigationContext context = null)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Navigate<T>(NavigationContext<T>)
Declaration
public Task Navigate<T>(NavigationContext<T> context = null)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
Events
|
Improve this Doc
View Source
OnNavigated
Declaration
public event EventHandler<RoutedEventArgs> OnNavigated
Event Type
|
Improve this Doc
View Source
OnNavigating
Declaration
public event EventHandler<RoutingEventArgs> OnNavigating
Event Type
|
Improve this Doc
View Source
OnRoutingMessage
Declaration
public event EventHandler<RoutingMessageArgs> OnRoutingMessage
Event Type
Implements
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.INotifyPropertyChanging