diff --git a/TrueLove.UWP/Views/CommentsPage.xaml.cs b/TrueLove.UWP/Views/CommentsPage.xaml.cs index 5514eb9..109dc49 100644 --- a/TrueLove.UWP/Views/CommentsPage.xaml.cs +++ b/TrueLove.UWP/Views/CommentsPage.xaml.cs @@ -45,6 +45,7 @@ async void GetSourceCode() private void Refresh_Click(object sender, RoutedEventArgs e) { _pageNumber = 0; + NetworkState.Visibility = Visibility.Collapsed; RefreshButton.IsEnabled = false; commentDataCollection.Clear(); Scroller.ChangeView(null, 0, null); diff --git a/TrueLove.UWP/Views/ImagesPage.xaml b/TrueLove.UWP/Views/ImagesPage.xaml index 120358a..a0779ea 100644 --- a/TrueLove.UWP/Views/ImagesPage.xaml +++ b/TrueLove.UWP/Views/ImagesPage.xaml @@ -58,7 +58,10 @@ TextAlignment="Center"> SOMETIME A PICTURE IS WORTH MORE THAN A THOUSAND WORDS. - + diff --git a/TrueLove.UWP/Views/ImagesPage.xaml.cs b/TrueLove.UWP/Views/ImagesPage.xaml.cs index 524ac7f..ad49f27 100644 --- a/TrueLove.UWP/Views/ImagesPage.xaml.cs +++ b/TrueLove.UWP/Views/ImagesPage.xaml.cs @@ -20,7 +20,6 @@ public ImagesPage() { this.InitializeComponent(); Window.Current.Activated += OnWindowActivated; // 订阅窗口活动事件 - ImageView.ItemsSource = imageCollection; DataLoad(); } @@ -36,6 +35,7 @@ protected override void OnNavigatedFrom(NavigationEventArgs e) private void Refresh_Click(object sender, RoutedEventArgs e) { + NetworkState.Visibility = Visibility.Collapsed; RefreshButton.IsEnabled = false; imageCollection.Clear(); Scroller.ChangeView(null, 0, null); @@ -91,6 +91,7 @@ private async void DataLoad() var refineData = new RefineData(); refineData.UpdateImage(src, imageCollection); } + else { NetworkState.Visibility = Visibility.Visible; } progressRing.IsActive = false; RefreshButton.IsEnabled = true;