diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2017-02-01 17:03:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-01 17:03:53 +0100 |
commit | d598d5efe3ead3b57b18421253ccf05eefacfdd0 (patch) | |
tree | 9cfe45f78e71a1bbd8245019eb0ab1f3a01ee1c2 /Xamarin.Forms.Xaml | |
parent | ae59382c9046501edb37882ad1c065aacce60319 (diff) | |
download | xamarin-forms-d598d5efe3ead3b57b18421253ccf05eefacfdd0.tar.gz xamarin-forms-d598d5efe3ead3b57b18421253ccf05eefacfdd0.tar.bz2 xamarin-forms-d598d5efe3ead3b57b18421253ccf05eefacfdd0.zip |
[Xaml[C]] cast to BindingBase before SetBinding() (#709)
Diffstat (limited to 'Xamarin.Forms.Xaml')
-rw-r--r-- | Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs b/Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs index 879ea3b0..47ef9f6c 100644 --- a/Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs +++ b/Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs @@ -361,7 +361,7 @@ namespace Xamarin.Forms.Xaml exception = null; var elementType = element.GetType(); - var binding = value as BindingBase; + var binding = value.ConvertTo(typeof(BindingBase),pinfoRetriever:null,serviceProvider:null) as BindingBase; var bindable = element as BindableObject; var nativeBindingService = DependencyService.Get<INativeBindingService>(); |