public virtual void OnDownloadedPage(ZumpaItemsResult zumpaItemsResult)
 {
     _lastResult = zumpaItemsResult;
     if (DataItems != null && DataItems.Count != 0)
     {
         foreach (var item in zumpaItemsResult.Items)
         {
             DataItems.Add(item);
         }
     }
     else
     {
         DataItems = new ObservableCollection<ZumpaItem>(zumpaItemsResult.Items);
     }
     Bind();
 }
        public override void OnPageAttached()
        {
            (Page.ApplicationBar.Buttons[RELOAD_INDEX] as ApplicationBarIconButton).Click += (o, e) =>
            {
                if (DataItems != null)
                {
                    DataItems.Clear();
                }
                LoadCommand.LoadURL = null;
                _lastResult = null;
                LoadCommand.Execute(null);
            };

            (Page.ApplicationBar.Buttons[SETTINGS_INDEX] as ApplicationBarIconButton).Click += (o, e) =>
            {
                Page.NavigationService.Navigate(new Uri("/ZumpaReader;component/Pages/SettingsPage.xaml", UriKind.RelativeOrAbsolute));
            };

            (Page.ApplicationBar.Buttons[ADD_INDEX] as ApplicationBarIconButton).Click += (o, e) =>
            {
                Page.NavigationService.Navigate(new Uri("/ZumpaReader;component/Pages/PostPage.xaml", UriKind.RelativeOrAbsolute));
            };
        }