ControlUtils: Fix FinAllChildren
This commit is contained in:
1 parent
ca1b68aa4f
commit
3be6371be1
2 files changed
+6
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user