summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-02-01 17:03:53 +0100
committerGitHub <noreply@github.com>2017-02-01 17:03:53 +0100
commitd598d5efe3ead3b57b18421253ccf05eefacfdd0 (patch)
tree9cfe45f78e71a1bbd8245019eb0ab1f3a01ee1c2 /Xamarin.Forms.Xaml
parentae59382c9046501edb37882ad1c065aacce60319 (diff)
downloadxamarin-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.cs2
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>();