From 3fda15ba5ad5395852f2ceed60231d3efc7bf989 Mon Sep 17 00:00:00 2001 From: Johannes Egger Date: Sat, 27 Apr 2019 01:00:59 +0200 Subject: [PATCH] `WpfHelper.FindChildren`: Pass `forceUsingTheVisualTreeHelper` to recursive calls. (#5922) fixes #5921 --- Xamarin.Forms.Platform.WPF/Helpers/TreeHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Forms.Platform.WPF/Helpers/TreeHelper.cs b/Xamarin.Forms.Platform.WPF/Helpers/TreeHelper.cs index df9a003..31acf9e 100644 --- a/Xamarin.Forms.Platform.WPF/Helpers/TreeHelper.cs +++ b/Xamarin.Forms.Platform.WPF/Helpers/TreeHelper.cs @@ -146,7 +146,7 @@ namespace Xamarin.Forms.Platform.WPF.Helpers } //recurse tree - foreach (T descendant in FindChildren(child)) + foreach (T descendant in FindChildren(child, forceUsingTheVisualTreeHelper)) { yield return descendant; } -- 2.7.4