Skip to content

Commit 8ab6971

Browse files
[tests] Fix ItemImageSourceShouldBeVisible (#28665)
* [tests] Fix ItemImageSourceShouldBeVisible * Updated test --------- Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
1 parent 8b20b4f commit 8ab6971

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed
15 KB
Loading

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18806.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ public Issue18806(TestDevice testDevice) : base(testDevice)
1111
}
1212

1313
public override string Issue => "SwipeItemView won't render FontImageSource on first opening";
14-
14+
15+
#if TEST_FAILS_ON_WINDOWS // Cannot open programatically a SwipeView on Windows.
1516
[Test]
1617
[Category(UITestCategories.SwipeView)]
1718
public void ItemImageSourceShouldBeVisible()
@@ -21,4 +22,5 @@ public void ItemImageSourceShouldBeVisible()
2122

2223
VerifyScreenshot();
2324
}
25+
#endif
2426
}

src/Core/src/Handlers/SwipeView/SwipeViewHandler.Windows.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public static void MapRequestOpen(ISwipeViewHandler handler, ISwipeView swipeVie
4141
{
4242
return;
4343
}
44+
45+
// Note: On Windows, the SwipeView control leverages the underlying SwipeControl from WinUI.
46+
// Unlike other platforms, SwipeControl does not provide a method to programmatically open or reveal its content.
47+
// As a result, programmatic triggering of the swipe functionality is not supported.
48+
// https://learn.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.controls.swipecontrol.close?view=winui-2.8
4449
}
4550

4651
public static void MapRequestClose(ISwipeViewHandler handler, ISwipeView swipeView, object? args)

0 commit comments

Comments
 (0)