Skip to content

[SwipeView] SwipeItem tap does not work with Image WidthRequest when configured in code-behind #39166

Closed

Description

@LogishaSelvarajSF4525

Description

The SwipeItem tap gesture does not work as expected when a SwipeView is created in code-behind, uses Reveal behavior, and contains an Image with WidthRequest set.

When the SwipeView is created in code-behind without setting WidthRequest, tapping the SwipeItem invokes the corresponding event and closes the SwipeView as expected. However, when WidthRequest is set on the Image, the SwipeItem tap does not invoke the event.

This issue is observed when the SwipeView and its content are configured in code-behind.

Note: The issue is not reproduced when the same scenario is implemented using XAML.

Output Screenshot

Expected output Actual output
Screen.Recording.2026-10-06.at.12.55.03.PM.mov
Screen.Recording.2026-10-06.at.1.17.18.PM.mov

Steps to Reproduce

  1. Create a SwipeView in code-behind.
  2. Set the SwipeView behavior to Reveal.
  3. Add an Image as the SwipeView content.
  4. Set a WidthRequest for the Image.
  5. Add a SwipeItem to the SwipeView.
  6. Handle the SwipeItem invoked event.
  7. Run the application.
  8. Swipe to open the SwipeView.
  9. Tap the SwipeItem.
  10. Observe the behavior.

Actual Behavior

When the Image has a WidthRequest set and the SwipeView is created in code-behind, tapping the SwipeItem does not invoke the expected event.

Expected Behavior

Tapping the SwipeItem should invoke its corresponding event and close the SwipeView as expected, regardless of whether the SwipeView is created in code-behind or XAML.

Link to public reproduction project repository

No response

Version with bug

10.0.110

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Activity

  1. added
    t/bug
    on Oct 6, 2026
  2. added
    partner/syncfusion
    on Oct 6, 2026
  3. Ahamed-Ali commented on Oct 6, 2026

    @Ahamed-Ali
    Contributor

    This issue has been validated in Visual Studio Code 1.140.0 with .NET MAUI versions 10.0.0, 10.0.101 and 10.0.110. It can be reproduced on Android platform.

  4. added
    s/verified
    s/triaged
    on Oct 6, 2026
  5. kubaflo commented on Oct 7, 2026

    @kubaflo
  6. github-actions commented on Oct 7, 2026

    @github-actions
    Contributor

    Regression Trace

    @LogishaSelvarajSF4525 — regression investigation for #39166.

    Scope Regression trace Range unknown


    Verdict: Insufficient evidence — No introducing change is supported; the available reports establish Android failures, not a working-to-failing transition.

    Evidence: bounded snapshot; degraded source/history coverage — Frozen source/history covers Windows, not the affected Android implementation; the additional Android history request was policy-filtered. No further history requests were attempted.

    🔎 Regression Analysis — click to expand

    The reported distinction is specific: code-behind plus an Image WidthRequest prevents a revealed SwipeItem from invoking, while omitting that width or using XAML works. These are configuration comparisons, not release boundaries.

    📊 Version boundary

    Reported failing MAUI 10.0.110 resolves to 6c379bf. No working release was supplied; the form explicitly says this is something new rather than a known regression.

    A subsequent validation also reports Android failures on 10.0.0 and 10.0.101. That argues against an introduction exclusive to 10.0.110, but does not establish the first bad release. Visual Studio Code 1.140.0 is editor information, not a MAUI boundary. Android OS/API level is unspecified.


    🧬 Candidate changes

    No defensible candidate. The inspected frozen Windows implementation uses WinUI SwipeControl; its changes do not explain Android hit-testing. Its history is also partially capped. Android source behavior and shipped differences could not be established. The existing expected/actual videos in the issue were inventoried, not analyzed. No reproduction or bisect was executed.


    🧭 Follow-up — actions and refresh

    Next action: Supply a minimal inline code-behind example and equivalent working XAML, including width, parent layout, item setup order and Android OS/API. Compare that identical case on the same device with an earlier MAUI release: record an exact passing package version if one exists. This distinguishes a release regression from configuration-dependent behavior already present in 10.0.0; the already-reported failing versions need not be supplied again.

    Maintainers: comment /issue trace-regression to refresh this report.

  7. added this to the .NET 10 SR12 milestone on Oct 16, 2026
  8. kubaflo commented on Oct 18, 2026

    @kubaflo
    Contributor

    Fixed here #39314

  9. locked and limited conversation to collaborators on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-swipeviewpartner/syncfusionplatform/androids/triageds/verifiedt/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions