private async void OpenCategory(Category cate)
        {
            var attribute = new Dictionary<string, string>();
            attribute.Add("paper name", cate.Owner.Title);
            attribute.Add("name", cate.Title);
            App.Current.Manager.TrackingService.TagEvent(Localytics.LocalyticsEvent.OpenCategory, attribute);

            var vm = ViewModelLocator.Get<List_Articles_ViewModel>();
            vm.CurrentCategory = cate;

            await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
            {
                App.Current.NavigationService.NavigateTo(Pages.List_Articles_Page, null, FrameKey.CurrentFrame);
            });
        }
예제 #2
0
 public void AddCategory(Category cat)
 {
     cat.Owner = this;
     Categories.Add(cat);
 }