From 552fca8df724442c182470e59a5f57670c9b1fa6 Mon Sep 17 00:00:00 2001 From: Aleh Khantsevich Date: Thu, 29 Aug 2024 00:19:24 +0200 Subject: [PATCH] Moved refresh and multi select buttons --- Wino.Mail/App.xaml | 2 + Wino.Mail/Extensions/EnumerableExtensions.cs | 18 -- Wino.Mail/Views/MailListPage.xaml | 275 +++++++++---------- Wino.Mail/Wino.Mail.csproj | 1 - 4 files changed, 138 insertions(+), 158 deletions(-) delete mode 100644 Wino.Mail/Extensions/EnumerableExtensions.cs diff --git a/Wino.Mail/App.xaml b/Wino.Mail/App.xaml index bf1fe890..91b2d0b2 100644 --- a/Wino.Mail/App.xaml +++ b/Wino.Mail/App.xaml @@ -11,6 +11,8 @@ + + diff --git a/Wino.Mail/Extensions/EnumerableExtensions.cs b/Wino.Mail/Extensions/EnumerableExtensions.cs deleted file mode 100644 index 4d94a9be..00000000 --- a/Wino.Mail/Extensions/EnumerableExtensions.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.Collections; - -namespace Wino.Extensions -{ - public static class EnumerableExtensions - { - public static IEnumerable OfType(this IEnumerable source) - { - foreach (object item in source) - { - if (item is T1 || item is T2) - { - yield return item; - } - } - } - } -} diff --git a/Wino.Mail/Views/MailListPage.xaml b/Wino.Mail/Views/MailListPage.xaml index cf76ea7e..3ce35de8 100644 --- a/Wino.Mail/Views/MailListPage.xaml +++ b/Wino.Mail/Views/MailListPage.xaml @@ -48,7 +48,7 @@ @@ -272,10 +272,7 @@ - + @@ -284,150 +281,122 @@ - - - - - - - - - - - - - - - - - - - - - - - + + - + + - + + - + + - - + Label="{x:Bind domain:Translator.MailOperation_SetFlag}" + ToolTipService.ToolTip="{x:Bind domain:Translator.MailOperation_SetFlag}"> + + SetFlag + + + + + + + + + ClearFlag + + + + + + + + + MarkAsRead + + + + + + + + + MarkAsUnread + + + + + + @@ -479,30 +448,58 @@ - - - - - + - - - - + Orientation="Horizontal"> + + + + + + + + + + + + -