Set ExceptionHandler on HydrationContext in ApplyPropertiesVisitor.SetTemplate()...
authorTim Barham <tim.barham@microsoft.com>
Wed, 19 Jun 2019 08:31:30 +0000 (18:31 +1000)
committerStephane Delcroix <stephane@delcroix.org>
Wed, 19 Jun 2019 08:31:30 +0000 (10:31 +0200)
Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs

index ea9f9a0..8c484a7 100644 (file)
@@ -695,7 +695,7 @@ namespace Xamarin.Forms.Xaml
                        ((IDataTemplate)dt).LoadTemplate = () => {
 #pragma warning restore 0612
                                var cnode = node.Clone();
-                               var context = new HydrationContext { ParentContext = Context, RootElement = Context.RootElement };
+                               var context = new HydrationContext { ParentContext = Context, RootElement = Context.RootElement, ExceptionHandler = Context.ExceptionHandler };
                                cnode.Accept(new XamlNodeVisitor((n, parent) => n.Parent = parent), node.Parent); //set parents for {StaticResource}
                                cnode.Accept(new ExpandMarkupsVisitor(context), null);
                                cnode.Accept(new NamescopingVisitor(context), null);