diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17204.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17204.cs index 6bb211b129b6..55e8d7e24744 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17204.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17204.cs @@ -6,19 +6,19 @@ namespace Microsoft.Maui.TestCases.Tests.Issues; public class Issue17204 : _IssuesUITest { - public override string Issue => "SwipeView does not work correctly on iOS when opened programmatically"; + public override string Issue => "SwipeView does not work correctly on iOS when opened programmatically"; - public Issue17204(TestDevice device) - : base(device) - { } + public Issue17204(TestDevice device) + : base(device) + { } - [Test] - [Category(UITestCategories.SwipeView)] - public void ProgrammaticallyOpenedSwipeViewShouldBeVisible() - { - App.WaitForElement("OpenSwipeViewButton"); - App.Tap("OpenSwipeViewButton"); - VerifyScreenshot(); - } + [Test] + [Category(UITestCategories.SwipeView)] + public void ProgrammaticallyOpenedSwipeViewShouldBeVisible() + { + App.WaitForElement("OpenSwipeViewButton"); + App.Tap("OpenSwipeViewButton"); + VerifyScreenshot(); + } } #endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue25598.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue25598.cs index 2ba3fa9c0890..0f4ef2ec6881 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue25598.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue25598.cs @@ -1,6 +1,6 @@ #if TEST_FAILS_ON_WINDOWS && TEST_FAILS_ON_IOS && TEST_FAILS_ON_CATALYST - // Related issue link https://github.com/dotnet/maui/pull/25642#discussion_r1833637157 - Windows - // The screenshot looks different on iOS depending on using the new or old handler. https://github.com/dotnet/maui/pull/29881#issuecomment-2957208107 - iOS +// Related issue link https://github.com/dotnet/maui/pull/25642#discussion_r1833637157 - Windows +// The screenshot looks different on iOS depending on using the new or old handler. https://github.com/dotnet/maui/pull/29881#issuecomment-2957208107 - iOS using NUnit.Framework; using UITest.Appium; using UITest.Core; diff --git a/src/Graphics/src/Graphics/Platforms/Windows/PlatformImage.cs b/src/Graphics/src/Graphics/Platforms/Windows/PlatformImage.cs index 28f443075492..1e654a4d9729 100644 --- a/src/Graphics/src/Graphics/Platforms/Windows/PlatformImage.cs +++ b/src/Graphics/src/Graphics/Platforms/Windows/PlatformImage.cs @@ -68,7 +68,7 @@ public IImage Downsize(float maxWidth, float maxHeight, bool disposeOriginal = f } IImage ResizeInternal(float canvasWidth, float canvasHeight, float drawX, float drawY, float drawWidth, float drawHeight, bool disposeOriginal) - { + { using var renderTarget = new CanvasRenderTarget(_creator, canvasWidth, canvasHeight, _bitmap.Dpi); using (var drawingSession = renderTarget.CreateDrawingSession()) @@ -102,7 +102,7 @@ IImage ResizeInternal(float canvasWidth, float canvasHeight, float drawX, float { throw saveException; } - + resizedStream.Seek(0); var newImage = FromStream(resizedStream.AsStreamForRead());