From 23c38a27ba667c98157faa27ea441a6020391519 Mon Sep 17 00:00:00 2001 From: Luis von der Eltz Date: Sun, 13 Feb 2022 19:32:24 +0100 Subject: [PATCH] Include container itself in resolving search property --- src/Avalonia.Controls/Primitives/SelectingItemsControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs b/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs index 6fba33a88c..badc7eab9d 100644 --- a/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs +++ b/src/Avalonia.Controls/Primitives/SelectingItemsControl.cs @@ -533,7 +533,7 @@ namespace Avalonia.Controls.Primitives bool Match(ItemContainerInfo info) { - foreach (var child in info.ContainerControl.GetVisualDescendants().OfType()) + foreach (var child in info.ContainerControl.GetSelfAndVisualDescendants().OfType()) { if (!child.IsSet(TextSearch.TextProperty)) {