Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
去除无意义的“最新”
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed May 19, 2019
1 parent 5e66fc1 commit 60f67ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion PixivFSUWP/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
<NavigationViewItem Content="收藏"/>
<NavigationViewItem Content="关注"/>
<NavigationViewItem Content="排行"/>
<NavigationViewItem Content="最新"/>
<NavigationViewItemSeparator x:Name="NavSeparator" Visibility="Collapsed"/>
<NavigationViewItem Content="PlaceHolder" x:Name="NavPlaceholder" Visibility="Collapsed" IsEnabled="False"/>
</NavigationView.MenuItems>
Expand Down
8 changes: 1 addition & 7 deletions PixivFSUWP/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ private async void NavControl_SelectionChanged(NavigationView sender, Navigation
NavSeparator.Visibility = Visibility.Collapsed;
NavPlaceholder.Visibility = Visibility.Collapsed;
break;
case 4:
NavPlaceholder.IsEnabled = false;
await Task.Delay(TimeSpan.FromMilliseconds(350));
NavSeparator.Visibility = Visibility.Collapsed;
NavPlaceholder.Visibility = Visibility.Collapsed;
break;
}
}

Expand All @@ -96,7 +90,7 @@ public async void SelectNavPlaceholder(string title)
NavSeparator.Visibility = Visibility.Visible;
NavPlaceholder.Visibility = Visibility.Visible;
await Task.Delay(TimeSpan.FromMilliseconds(10));
NavSelect(6);
NavSelect(5);
}

private void BtnSetting_Click(object sender, RoutedEventArgs e)
Expand Down

0 comments on commit 60f67ea

Please sign in to comment.