xamarin/Xamarin.Forms

TemplateBinding issue with iOS

Aperta

#2146 aperta il 20 mar 2018

 (4 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/binding ⛓e/4 :clock4:help wantedp/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor