Skip to content

Image Tapped event not functional #3485

Closed

Description

@MartinZikmund

Current behavior

Tapped event on Image does not work on Android. Possibly on iOS/macOS as well, WASM works normally.

Expected behavior

Tapped event should fire on interaction.

How to reproduce it (as minimally and precisely as possible)

Attach handler to Image.Tapped event.

<Image Source="/Assets/Image.png" Tapped="Image_Tapped" />

Code-behind:

private void Image_Tapped(object sender, TappedRoutedEventArgs e)
{
    global::System.Diagnostics.Debug.WriteLine("Tapped");
}

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Windows
  • Build tasks
  • Solution Templates

Visual Studio:

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Activity

  1. added
    kind/bug
    triage/untriaged
    platform/android 🤖
    and removed
    triage/untriaged
    on Jul 5, 2020
  2. jeromelaban commented on Jul 6, 2020

    @jeromelaban
    Member

    This issue may get fixed by #3203 (comment)

  3. davidjohnoliver commented on Jul 6, 2020

    @davidjohnoliver
    Contributor

    This issue may get fixed by #3203 (comment)

    Indeed, made a note to check this

  4. davidjohnoliver commented on Jul 7, 2020

    @davidjohnoliver
    Contributor

    Update: yes, seems it is indeed fixed by #3203, which makes Image a FrameworkElement

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

    kind/bugplatform/android 🤖

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions