From 3ae418a10d89429579a61d5da9b7ee713544c8c1 Mon Sep 17 00:00:00 2001
From: "PandaSharp (Emiliano84)" <7117301+Panda-Sharp@users.noreply.github.com>
Date: Wed, 14 Apr 2021 14:24:17 +0200
Subject: [PATCH 01/18] Update Mouse to FrameworkElementExtensions
This will fix the oversight in the documentation after the 7.0 breaking change
---
.../SamplePages/Mouse/MouseCursorPage.bind | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Mouse/MouseCursorPage.bind b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Mouse/MouseCursorPage.bind
index 55fa0cd73..59482b55d 100644
--- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Mouse/MouseCursorPage.bind
+++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Mouse/MouseCursorPage.bind
@@ -8,7 +8,7 @@
Margin="50,100,20,20"
HorizontalAlignment="Left"
VerticalAlignment="Top"
- ui:Mouse.Cursor="UniversalNo"
+ ui:FrameworkElementExtensions.Cursor="UniversalNo"
Background="DeepSkyBlue">
-
\ No newline at end of file
+
From 9481e9c90f1485ed20a27d0ee1e8f7c15598c582 Mon Sep 17 00:00:00 2001
From: Alexandre Zollinger Chohfi
Date: Thu, 15 Apr 2021 17:31:56 -0700
Subject: [PATCH 02/18] Turned off layout rounding for failing tests
---
.../UnitTests.UWP/UI/Controls/Test_WrapPanel_Visibility.cs | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/UnitTests/UnitTests.UWP/UI/Controls/Test_WrapPanel_Visibility.cs b/UnitTests/UnitTests.UWP/UI/Controls/Test_WrapPanel_Visibility.cs
index 9ed9f0eeb..50cd685d5 100644
--- a/UnitTests/UnitTests.UWP/UI/Controls/Test_WrapPanel_Visibility.cs
+++ b/UnitTests/UnitTests.UWP/UI/Controls/Test_WrapPanel_Visibility.cs
@@ -37,6 +37,8 @@ namespace UnitTests.UI.Controls
") as FrameworkElement;
+ treeRoot.UseLayoutRounding = false;
+
var expected = new (int u, int v, int w, int h)[]
{
(0, 0, 0, 0), // Collapsed
@@ -94,6 +96,8 @@ namespace UnitTests.UI.Controls
") as FrameworkElement;
+ treeRoot.UseLayoutRounding = false;
+
var expected = new (int u, int v, int w, int h)[]
{
(0, 0, 150, 50),
@@ -149,6 +153,8 @@ namespace UnitTests.UI.Controls
") as FrameworkElement;
+ treeRoot.UseLayoutRounding = false;
+
var expected = new (int u, int v, int w, int h)[]
{
(0, 0, 150, 50),
From 4556c8a5f4290eb7aa89ccab95cc5b4e12baca80 Mon Sep 17 00:00:00 2001
From: "PandaSharp (Emiliano84)" <7117301+Panda-Sharp@users.noreply.github.com>
Date: Fri, 16 Apr 2021 09:24:21 +0200
Subject: [PATCH 03/18] Update MouseCursorPage.bind
---
.../SamplePages/Mouse/MouseCursorPage.bind | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Mouse/MouseCursorPage.bind b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Mouse/MouseCursorPage.bind
index 59482b55d..19986455f 100644
--- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Mouse/MouseCursorPage.bind
+++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Mouse/MouseCursorPage.bind
@@ -21,7 +21,7 @@
Margin="20"
HorizontalAlignment="Left"
VerticalAlignment="Top"
- ui:Mouse.Cursor="Wait"
+ ui:FrameworkElementExtensions.Cursor="Wait"
Background="Orange">
From fe7a98b6368fa0da56870aee4dfe4574cc31a17e Mon Sep 17 00:00:00 2001
From: Sergio Pedri
Date: Fri, 9 Apr 2021 19:02:40 +0200
Subject: [PATCH 04/18] Enabled correct WeakReferenceMessenger path on .NET 5
---
.../Messaging/WeakReferenceMessenger.cs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Microsoft.Toolkit.Mvvm/Messaging/WeakReferenceMessenger.cs b/Microsoft.Toolkit.Mvvm/Messaging/WeakReferenceMessenger.cs
index 37e391636..72357897a 100644
--- a/Microsoft.Toolkit.Mvvm/Messaging/WeakReferenceMessenger.cs
+++ b/Microsoft.Toolkit.Mvvm/Messaging/WeakReferenceMessenger.cs
@@ -9,10 +9,10 @@ using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using Microsoft.Collections.Extensions;
using Microsoft.Toolkit.Mvvm.Messaging.Internals;
-#if NETSTANDARD2_1
-using RecipientsTable = System.Runtime.CompilerServices.ConditionalWeakTable