Skip to content

Commit

Permalink
Bump v0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ProJend committed Oct 7, 2023
1 parent 0ea1b7a commit 887a347
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions TrueLove.UWP/Views/CommentsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 4 additions & 1 deletion TrueLove.UWP/Views/ImagesPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@
TextAlignment="Center">
SOMETIME A PICTURE IS WORTH MORE THAN A THOUSAND WORDS.
</TextBlock>
<GridView x:Name="ImageView" animations:ReorderGridAnimation.Duration="250">
<GridView
x:Name="ImageView"
animations:ReorderGridAnimation.Duration="250"
ItemsSource="{x:Bind imageCollection}">
<GridView.ItemTemplate>
<DataTemplate>
<Image Source="{Binding}" Stretch="Uniform" />
Expand Down
3 changes: 2 additions & 1 deletion TrueLove.UWP/Views/ImagesPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public ImagesPage()
{
this.InitializeComponent();
Window.Current.Activated += OnWindowActivated; // 订阅窗口活动事件
ImageView.ItemsSource = imageCollection;
DataLoad();
}

Expand All @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 887a347

Please sign in to comment.