private void OnStars() { var pageToken = _settingsService.StreamView == StreamView.ExpandedView ? PageTokens.ExpandedStream : PageTokens.ListStream; var navParam = new StreamPageNavigationParameter { StreamId = SpecialTags.Starred, Title = Strings.Resources.StartPageHeader }; _navigationService.Navigate(pageToken, navParam.ToJson()); }
private void OnItemClick(object args) { var clickEventArgs = (ItemClickEventArgs)args; var categoryItem = clickEventArgs.ClickedItem as CategoryItem; if (categoryItem != null) { SubscriptionsHeader = categoryItem.Title; TreeItems = new List<TreeItemBase>(categoryItem.Subscriptions); _isRoot = false; _categoryId = categoryItem.Id; } else { var subscriptionItem = clickEventArgs.ClickedItem as SubscriptionItem; if (subscriptionItem != null) { var pageToken = _settingsService.StreamView == StreamView.ExpandedView ? PageTokens.ExpandedStream : PageTokens.ListStream; var navParam = new StreamPageNavigationParameter { StreamId = subscriptionItem.Id, Title = subscriptionItem.PageTitle }; _navigationService.Navigate(pageToken, navParam.ToJson()); } } }