xamarin/Xamarin.Forms

TemplateBinding issue with iOS

Ouverte

#2 146 ouverte le 20 mars 2018

 (4 commentaires) (0 réaction) (0 personne assignée)C# (1 926 forks)batch import
a/binding ⛓e/4 :clock4:help wantedp/iOS 🍎t/bug :bug:up-for-grabs

Métriques du dépôt

Stars
 (5 644 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Description

TemplateBinding for ICommand not working from within a ControlTemplate on Xamarin Forms iOS whereas it works as expected on Xamarin Forms Android.

Steps to Reproduce

  1. Bind the ItemTapped Command Property from an extended ListView contained in a ControlTemplate used on a ContentPage

Expected Behavior

Expected Behavior is that the ICommand in the ViewModel is executed which happens correctly on Android.

Actual Behavior

Actual Behavior on iOS is that somehow the ListView.ItemTapped event appears not to run although the ICommand is executed. The result is that the Command Parameters are never passed. The sample app can be used to illustrate this, a breakpoint in ListViewEx.OnItemTapped is never hit.

Basic Information

  • Version with issue: 2.5.0.28055
  • Last known good version: Unknown
  • IDE: VS2017
  • Platform Target Frameworks:
    • iOS: 11.2
    • Android: 4.0.3
  • Android Support Library Version: 25.4.0.2
  • Nuget Packages: Default Forms App
  • Affected Devices: iOS devices

Reproduction Link

App12.zip

Guide contributeur