Example #1
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
 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);
 }