Show / Hide Table of Contents

Class NavigationViewModel

ViewModel providing an implementing of INavigator and binding with javascript routing API. Originally designed to work with vue-router.

Inheritance
System.Object
ViewModel
NavigationViewModel
Implements
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.INotifyPropertyChanging
INavigator
Inherited Members
ViewModel.PropertyChanged
ViewModel.PropertyChanging
ViewModel.Set<T>(T, T, String)
ViewModel.PropertyHasChanged(String)
ViewModel.PropertyIsChanging(String)
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()
Namespace: Neutronium.BuildingBlocks.Application.Navigation
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
Type Name Description
System.Type type
NavigationContext context
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
Type Name Description
NavigationContext<T> context
Returns
Type Description
System.Threading.Tasks.Task
Type Parameters
Name Description
T

Events

| Improve this Doc View Source

OnNavigated

Declaration
public event EventHandler<RoutedEventArgs> OnNavigated
Event Type
Type Description
System.EventHandler<RoutedEventArgs>
| Improve this Doc View Source

OnNavigating

Declaration
public event EventHandler<RoutingEventArgs> OnNavigating
Event Type
Type Description
System.EventHandler<RoutingEventArgs>
| Improve this Doc View Source

OnRoutingMessage

Declaration
public event EventHandler<RoutingMessageArgs> OnRoutingMessage
Event Type
Type Description
System.EventHandler<RoutingMessageArgs>

Implements

System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.INotifyPropertyChanging
INavigator
  • Improve this Doc
  • View Source
Back to top Generated by DocFX