xamarin/Xamarin.Forms

[Bug] Attached Collection Property return the property for all views and not just the one that is calling

开放

#9,151 创建于 2020年1月10日

 (2 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/binding ⛓e/3 :clock3:help wantedinactivet/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Description

When having Collection like IList as an attached property, GetValue return the value for all views that has this property instead of return just the property related to the view that is calling GetValue.

Steps to Reproduce

  1. Run the sample.
  2. Click on the button that will execute code to get the properties to different views.

Expected Behavior

Method return property related only to itself.

Actual Behavior

view.GetValue return properties to all views that has it.

Basic Information

  • Version with issue: Xamarin.Forms (4.4.0.991265)

Reproduction Link

Sample with Issue

贡献者指南