Skip to content

Commit

Permalink
支持仅在邮箱为Outlook且文件夹为收件箱的情况下显示NavigationTab
Browse files Browse the repository at this point in the history
  • Loading branch information
Raspberry-Monster committed Jan 29, 2024
1 parent 53157f9 commit 91e4b0a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/MicaApps.Mail.UWP/Pages/MailFolderDetailsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
NavigationData = Data;
FolderName.Text = Data.Name;
NavigationTab.SelectedItem = FocusedTab;

if(Data.Type == MailFolderType.Inbox && Data.MailType == MailType.Outlook)
{
NavigationTab.Visibility = Visibility.Visible;
}
else
{
NavigationTab.Visibility = Visibility.Collapsed;
}
NavigationView_SelectionChanged(NavigationTab, null);
}
}
Expand Down

0 comments on commit 91e4b0a

Please sign in to comment.