xamarin/Xamarin.Forms

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

Aperta

#9151 aperta il 10 gen 2020

 (2 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/binding ⛓e/3 :clock3:help wantedinactivet/bug :bug:up-for-grabs

Metriche repository

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

Descrizione

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

Guida contributor