public AllArtistsPage(int genreId) { InitializeComponent(); BindingContext = vm = new AllArtistsViewModel(); vm.ThisGenreId = genreId; vm.InitCommand.Execute(null); }
protected override void OnNavigatedTo(NavigationEventArgs e) { try { aavm = (AllArtistsViewModel)NavigationHelper.GetInstance().Peek(); aavm = (AllArtistsViewModel)NavigationHelper.GetInstance().Pop(); } catch (Exception ex) { aavm = new AllArtistsViewModel(); } DataContext = aavm; }