protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); NavMode = e.NavigationMode; string arguments = string.Empty; if (e.Parameter != null) { arguments = e.Parameter.ToString(); } if (string.IsNullOrWhiteSpace(arguments) == false) { if (NavigationHelper.ContainsAttribute(arguments, "page")) { if (NavigationHelper.GetParameter(arguments, "page") == "artists") { frame.Navigate(typeof(Artists)); } else if (NavigationHelper.GetParameter(arguments, "page") == "albums") { frame.Navigate(typeof(Albums)); } else if (NavigationHelper.GetParameter(arguments, "page") == "songs") { frame.Navigate(typeof(Songs)); } else { //OTHER ACTIONS frame.Navigate(typeof(Artists)); } } else { frame.Navigate(typeof(Artists)); } } else { frame.Navigate(typeof(Artists)); } if (NavMode == NavigationMode.Refresh) { return; } OpenPage(NavMode == NavigationMode.Back); }