Browse Source

Include container itself in resolving search property

pull/7594/head
Luis von der Eltz 5 years ago
parent
commit
23c38a27ba
  1. 2
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

2
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<Control>())
foreach (var child in info.ContainerControl.GetSelfAndVisualDescendants().OfType<Control>())
{
if (!child.IsSet(TextSearch.TextProperty))
{

Loading…
Cancel
Save