The Source of a Binding searches in the wrong scope for an element with the x:Name when x:Reference is used. (XAML)
Possible cause: https://github.com/xamarin/Xamarin.Forms/pull/2556
The value of the property on the custom view is filled with the value of the bindable property on the view/page that implements the custom view.
The binding searches for the bindable property on the custom view, instead of the view/page that implements the custom view. So no value is set.
Test project which has the new Xamarin.Forms version (3.2.0.839982).
ReferenceTest.zip
Simply replace it with 3.1.0.697729 and it works.
I can confirm this...just upgraded to 3.2 from 3.1...bindings fail when x:Name is the same for embedded custom views; workaround seems to be set a unique x:Name for each XAML custom view.
I have same issue after upgrading. Looking forward to this getting fixed :)
@jvoostv1 the attached project has root
and root2
, but I get the idea
Hi! I still have this issue with Xamarin.Forms version 3.4.0.1009999. Downgrading to 3.1.0.697729 makes everything ok. Looking forward to the fix! :)
Hi! I still have this issue with Xamarin.Forms version 3.4.0.1009999. Downgrading to 3.1.0.697729 makes everything ok. Looking forward to the fix! :)
I've the same issue and done the same thing.
@PRopia99 @Vencode please open a new issue with a project attached. make sure you refer to this item as you do so
thanks
@StephaneDelcroix We already had the issue opened since November. https://github.com/xamarin/Xamarin.Forms/issues/4010#issuecomment-443125609
Most helpful comment
I can confirm this...just upgraded to 3.2 from 3.1...bindings fail when x:Name is the same for embedded custom views; workaround seems to be set a unique x:Name for each XAML custom view.