public ShellPageViewModel(INavigationServiceBase navigationService) { this.navigationService = navigationService; NavigationCommand.Execute("Home"); var rootFrame = (Window.Current.Content as Frame); if(rootFrame != null) rootFrame.Navigated += ShellPageViewModel_Navigated; }
public HomePageViewModel(INavigationServiceBase navigationService, IDataService<DataItem> dataService) { this.navigationService = navigationService; this.dataService = dataService; }