xamarin/Xamarin.Forms

TemplateBinding issue with iOS

Open

#2,146 opened on Mar 20, 2018

View on GitHub
 (4 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
a/binding ⛓e/4 :clock4:help wantedp/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

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

Contributor guide