xamarin/Xamarin.Forms

TemplateBinding issue with iOS

開放

#2,146 建立於 2018年3月20日

 (4 則留言) (0 個反應) (0 位負責人)C# (1,926 個分叉)batch import
a/binding ⛓e/4 :clock4:help wantedp/iOS 🍎t/bug :bug:up-for-grabs

倉庫指標

星標
 (5,644 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南