diff --git a/.gitignore b/.gitignore
index d33d9275..cfa63f40 100644
--- a/.gitignore
+++ b/.gitignore
@@ -206,9 +206,6 @@ PublishScripts/
*.nuget.props
*.nuget.targets
-# Nuget personal access tokens and Credentials
-nuget.config
-
# Microsoft Azure Build Output
csx/
*.build.csdef
diff --git a/Wino.Core.UWP/Services/StatePersistenceService.cs b/Wino.Core.UWP/Services/StatePersistenceService.cs
index f9119c6a..edc8280d 100644
--- a/Wino.Core.UWP/Services/StatePersistenceService.cs
+++ b/Wino.Core.UWP/Services/StatePersistenceService.cs
@@ -40,7 +40,6 @@ namespace Wino.Services
if (SetProperty(ref isReadingMail, value))
{
OnPropertyChanged(nameof(IsBackButtonVisible));
- WeakReferenceMessenger.Default.Send(new ShellStateUpdated());
}
}
}
@@ -63,7 +62,6 @@ namespace Wino.Services
if (SetProperty(ref isReaderNarrowed, value))
{
OnPropertyChanged(nameof(IsBackButtonVisible));
- WeakReferenceMessenger.Default.Send(new ShellStateUpdated());
}
}
}
diff --git a/Wino.Mail.ViewModels/MailListPageViewModel.cs b/Wino.Mail.ViewModels/MailListPageViewModel.cs
index 1d925b37..79d63173 100644
--- a/Wino.Mail.ViewModels/MailListPageViewModel.cs
+++ b/Wino.Mail.ViewModels/MailListPageViewModel.cs
@@ -28,7 +28,6 @@ using Wino.Mail.ViewModels.Collections;
using Wino.Mail.ViewModels.Data;
using Wino.Mail.ViewModels.Messages;
using Wino.Messaging.Client.Mails;
-using Wino.Messaging.Client.Shell;
using Wino.Messaging.Server;
using Wino.Messaging.UI;
@@ -283,8 +282,6 @@ namespace Wino.Mail.ViewModels
if (isMultiSelecting && StatePersistenceService.IsReaderNarrowed)
{
- // Don't change the active mail item if the reader is narrowed, but just update the shell.
- Messenger.Send(new ShellStateUpdated());
return;
}
diff --git a/Wino.Mail.ViewModels/MailRenderingPageViewModel.cs b/Wino.Mail.ViewModels/MailRenderingPageViewModel.cs
index 61c488d3..a7775780 100644
--- a/Wino.Mail.ViewModels/MailRenderingPageViewModel.cs
+++ b/Wino.Mail.ViewModels/MailRenderingPageViewModel.cs
@@ -425,7 +425,7 @@ namespace Wino.Mail.ViewModels
FromAddress = message.From.Mailboxes.FirstOrDefault()?.Address ?? Translator.UnknownAddress;
FromName = message.From.Mailboxes.FirstOrDefault()?.Name ?? Translator.UnknownSender;
CreationDate = message.Date.DateTime;
- ContactPicture = initializedMailItemViewModel.SenderContact?.Base64ContactPicture;
+ ContactPicture = initializedMailItemViewModel?.SenderContact?.Base64ContactPicture;
// Automatically disable images for Junk folder to prevent pixel tracking.
// This can only work for selected mail item rendering, not for EML file rendering.
diff --git a/Wino.Mail.ViewModels/Messages/ResetSingleMailItemSelectionEvent.cs b/Wino.Mail.ViewModels/Messages/ResetSingleMailItemSelectionEvent.cs
deleted file mode 100644
index f90907e2..00000000
--- a/Wino.Mail.ViewModels/Messages/ResetSingleMailItemSelectionEvent.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using Wino.Mail.ViewModels.Data;
-
-namespace Wino.Mail.ViewModels.Messages
-{
-
- ///
- /// When a thread conversation listview has single selection, all other listviews
- /// must unselect all their items.
- ///
- public class ResetSingleMailItemSelectionEvent
- {
- public ResetSingleMailItemSelectionEvent(MailItemViewModel selectedViewModel)
- {
- SelectedViewModel = selectedViewModel;
- }
-
- public MailItemViewModel SelectedViewModel { get; set; }
- }
-}
diff --git a/Wino.Mail/AppShell.xaml.cs b/Wino.Mail/AppShell.xaml.cs
index 6b1e6321..00dbbdb9 100644
--- a/Wino.Mail/AppShell.xaml.cs
+++ b/Wino.Mail/AppShell.xaml.cs
@@ -225,7 +225,6 @@ namespace Wino.Views
{
WeakReferenceMessenger.Default.Send(new ClearMailSelectionsRequested());
WeakReferenceMessenger.Default.Send(new DisposeRenderingFrameRequested());
- WeakReferenceMessenger.Default.Send(new ShellStateUpdated());
}
private async void MenuItemContextRequested(UIElement sender, ContextRequestedEventArgs args)
diff --git a/Wino.Mail/Views/MailListPage.xaml b/Wino.Mail/Views/MailListPage.xaml
index 2b527a5d..5899931a 100644
--- a/Wino.Mail/Views/MailListPage.xaml
+++ b/Wino.Mail/Views/MailListPage.xaml
@@ -20,7 +20,7 @@
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:selectors="using:Wino.Selectors"
xmlns:toolkit="using:CommunityToolkit.WinUI.Controls"
- xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
+ xmlns:toolkitExt="using:CommunityToolkit.WinUI"
xmlns:viewModelData="using:Wino.Mail.ViewModels.Data"
xmlns:wino="using:Wino"
x:Name="root"
@@ -176,7 +176,7 @@
,
IRecipient,
IRecipient,
- IRecipient,
IRecipient,
- IRecipient,
IRecipient
{
private const double RENDERING_COLUMN_MIN_WIDTH = 375;
@@ -144,14 +140,6 @@ namespace Wino.Views
MailListView.ClearSelections();
}
- void IRecipient.Receive(ResetSingleMailItemSelectionEvent message)
- {
- // Single item in thread selected.
- // Force main list view to unselect all items, except for the one provided.
-
- MailListView.ClearSelections(message.SelectedViewModel);
- }
-
private async void MailItemContextRequested(UIElement sender, ContextRequestedEventArgs args)
{
// Context is requested from a single mail point, but we might have multiple selected items.
@@ -303,11 +291,6 @@ namespace Wino.Views
#endregion
- public void Receive(ActiveMailFolderChangedEvent message)
- {
- UpdateAdaptiveness();
- }
-
public async void Receive(SelectMailItemContainerEvent message)
{
if (message.SelectedMailViewModel == null) return;
@@ -354,11 +337,6 @@ namespace Wino.Views
});
}
- public void Receive(ShellStateUpdated message)
- {
- UpdateAdaptiveness();
- }
-
private void SearchBoxFocused(object sender, RoutedEventArgs e)
{
SearchBar.PlaceholderText = string.Empty;
diff --git a/Wino.Mail/Views/Settings/AliasManagementPage.xaml b/Wino.Mail/Views/Settings/AliasManagementPage.xaml
index 4da46c04..c426b2a4 100644
--- a/Wino.Mail/Views/Settings/AliasManagementPage.xaml
+++ b/Wino.Mail/Views/Settings/AliasManagementPage.xaml
@@ -1,6 +1,6 @@
diff --git a/Wino.Mail/Views/Settings/PersonalizationPage.xaml b/Wino.Mail/Views/Settings/PersonalizationPage.xaml
index 55d67487..4d2fc481 100644
--- a/Wino.Mail/Views/Settings/PersonalizationPage.xaml
+++ b/Wino.Mail/Views/Settings/PersonalizationPage.xaml
@@ -7,14 +7,14 @@
xmlns:controls1="using:Wino.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:domain="using:Wino.Core.Domain"
- x:Name="root"
xmlns:enums="using:Wino.Core.Domain.Enums"
xmlns:helpers="using:Wino.Helpers"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:personalization="using:Wino.Core.UWP.Models.Personalization"
xmlns:selectors="using:Wino.Selectors"
- xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
+ xmlns:toolkitExt="using:CommunityToolkit.WinUI"
xmlns:viewModelData="using:Wino.Mail.ViewModels.Data"
+ x:Name="root"
Title="Personalization"
mc:Ignorable="d">
@@ -149,8 +149,8 @@
+ MailItem="{Binding ElementName=root, Path=ViewModel.DemoPreviewMailCopy}"
+ ShowPreviewText="True" />
@@ -255,7 +255,7 @@
@@ -276,7 +276,7 @@
ContentAlignment="Vertical">
diff --git a/Wino.Mail/Views/WelcomePage.xaml b/Wino.Mail/Views/WelcomePage.xaml
index 7d6c45cd..e44920dd 100644
--- a/Wino.Mail/Views/WelcomePage.xaml
+++ b/Wino.Mail/Views/WelcomePage.xaml
@@ -3,30 +3,19 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:abstract="using:Wino.Views.Abstract"
- xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="using:Wino.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:toolkitmd="using:CommunityToolkit.Labs.WinUI.MarkdownTextBlock"
mc:Ignorable="d">
-
-
+
+
-
diff --git a/Wino.Mail/Views/WelcomePage.xaml.cs b/Wino.Mail/Views/WelcomePage.xaml.cs
index b5206aeb..6a87a21a 100644
--- a/Wino.Mail/Views/WelcomePage.xaml.cs
+++ b/Wino.Mail/Views/WelcomePage.xaml.cs
@@ -1,19 +1,17 @@
-using System;
-using Windows.System;
+using CommunityToolkit.Labs.WinUI.MarkdownTextBlock;
using Wino.Views.Abstract;
namespace Wino.Views
{
public sealed partial class WelcomePage : WelcomePageAbstract
{
+ private readonly MarkdownConfig _config;
+
public WelcomePage()
{
InitializeComponent();
- }
- private async void HyperlinkClicked(object sender, Microsoft.Toolkit.Uwp.UI.Controls.LinkClickedEventArgs e)
- {
- await Launcher.LaunchUriAsync(new System.Uri(e.Link));
+ _config = new MarkdownConfig();
}
}
}
diff --git a/Wino.Mail/Wino.Mail.csproj b/Wino.Mail/Wino.Mail.csproj
index 49275750..fdaa5e8a 100644
--- a/Wino.Mail/Wino.Mail.csproj
+++ b/Wino.Mail/Wino.Mail.csproj
@@ -133,6 +133,9 @@
8.2.2
+
+ 0.1.240917-build.1755
+
8.2.2
@@ -177,9 +180,6 @@
6.2.14
-
- 7.1.3
-
2.8.6
diff --git a/Wino.Messages/Client/Shell/ShellStateUpdated.cs b/Wino.Messages/Client/Shell/ShellStateUpdated.cs
deleted file mode 100644
index 3a8cbd6a..00000000
--- a/Wino.Messages/Client/Shell/ShellStateUpdated.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace Wino.Messaging.Client.Shell
-{
- ///
- /// When reading mail state or reader pane narrowed state is changed.
- ///
- public record ShellStateUpdated;
-}
diff --git a/nuget.config b/nuget.config
new file mode 100644
index 00000000..93db49e0
--- /dev/null
+++ b/nuget.config
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+