diff options
author | Vitaly Takmazov | 2013-11-27 00:48:37 +0400 |
---|---|---|
committer | Vitaly Takmazov | 2013-11-27 00:48:37 +0400 |
commit | 98700f28bb208f7bdc741397b1c9993bfd051d8d (patch) | |
tree | 91789a8f6416d2c1e4edf655f61a03ed6e86b4db /Juick/MainPage.xaml.cs | |
parent | c07cfc51d2e8f195533ed605d71d33b4fd8bca61 (diff) |
Refresh only current page, fixes issue #18
Diffstat (limited to 'Juick/MainPage.xaml.cs')
-rw-r--r-- | Juick/MainPage.xaml.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Juick/MainPage.xaml.cs b/Juick/MainPage.xaml.cs index 7baa6dd..edf2d3b 100644 --- a/Juick/MainPage.xaml.cs +++ b/Juick/MainPage.xaml.cs @@ -45,8 +45,9 @@ namespace Juick BindingOperations.SetBinding(
progressIndicator, ProgressIndicator.IsIndeterminateProperty, binding);
if (App.AppContext.Account.IsAuthenticated)
- foreach (var page in ((AppViewModel)DataContext).Pages)
- page.RefreshData();
+ {
+ App.AppContext.Pages[0].RefreshData();
+ }
};
}
@@ -86,11 +87,8 @@ namespace Juick private void ApplicationBarIconButtonClick(object sender, EventArgs e)
{
- foreach (var page in App.AppContext.Pages)
- {
- page.Items.Clear();
- page.RefreshData();
- }
+ App.AppContext.Pages[Pages.SelectedIndex].Items.Clear();
+ App.AppContext.Pages[Pages.SelectedIndex].RefreshData();
}
private void ApplicationBarMenuItemClick(object sender, EventArgs e)
|