ControlUtils: Fix FinAllChildren

This commit is contained in:
2023-09-28 20:03:00 +02:00
parent ca1b68aa4f
commit 3be6371be1
2 changed files with 6 additions and 2 deletions

View File

@ -58,7 +58,8 @@ namespace Elwig.Helpers {
continue;
} else if (child is T t) {
yield return t;
} else if (child is DependencyObject childDepOpj) {
}
if (child is DependencyObject childDepOpj) {
foreach (T childOfChild in FindAllChildren<T>(childDepOpj)) {
yield return childOfChild;
}