/// <summary> /// Navigates to the given page. /// </summary> /// <param name="destinationPage">Destination page.</param> protected void Navigate(NavigationPageEnum destinationPage) { if (destinationPage != CurrentPage) { NavigationActor.Instance.Navigate(destinationPage); } }
/// <summary> /// Navigates to the page referred by the given enum value. /// </summary> /// <param name="page">Page enum value.</param> public void Navigate(NavigationPageEnum page) { lock (_mainWindowLock) { RequireMainWindow(); CurrentPage = page; } }
public NavigableViewModel(NavigationPageEnum currentPage) { CurrentPage = currentPage; NavigateCommand = new RelayCommand <NavigationPageEnum>(Navigate); }
public NavigableViewModel(NavigationPageEnum currentPage) { CurrentPage = currentPage; NavigateCommand = new RelayCommand<NavigationPageEnum>(Navigate); }