public Shell(INavMethods navMethods) { InitializeComponent(); if (navMethods == null) { throw new ArgumentNullException("navMethods"); } navMethods.ShellTabControl = MainTabControl; }
public ViewTwoViewModel(INavMethods navMethods) { Title = "ViewTwoViewModel"; Header = "View Two"; if (navMethods == null) throw new ArgumentNullException("navMethods"); _navMethods = navMethods; NavigateToViewOneCommand = new RelayCommand(NavigateToViewOne); NavigateToViewOneAndCloseCommand = new RelayCommand(NavigateToViewOneAndClose); NavigateToViewThreeCommand = new RelayCommand(NavigateToViewThree); NavigateToViewThreeAndCloseCommand = new RelayCommand(NavigateToViewThreeAndClose); }
public ViewThreeViewModel(INavMethods navMethods) { Title = "ViewThreeViewModel"; Header = "View Three"; if (navMethods == null) { throw new ArgumentNullException("navMethods"); } _navMethods = navMethods; NavigateToViewOneCommand = new RelayCommand(NavigateToViewOne); NavigateToViewOneAndCloseCommand = new RelayCommand(NavigateToViewOneAndClose); NavigateToViewTwoCommand = new RelayCommand(NavigateToViewTwo); NavigateToViewTwoAndCloseCommand = new RelayCommand(NavigateToViewTwoAndClose); }
public Shell(INavMethods navMethods) { InitializeComponent(); if (navMethods == null) throw new ArgumentNullException("navMethods"); navMethods.ShellTabControl = MainTabControl; }
public NavListesViewModel(INavMethods navMethods) { _eventAggregator = ServiceLocator.Current.GetInstance<IEventAggregator>(); NavCommand = new DelegateCommand(NavFunc); }