fixed a bug of Dialog
This commit is contained in:
1 parent
a794c2a2c0
commit
2a89bf42f7
5 files changed
+34
-22
No files matched your search
@@ -27,6 +27,7 @@ namespace HandyControl.Tools
|
||||
|
||||
public static T GetChild<T>(DependencyObject d) where T : DependencyObject
|
||||
{
|
||||
if (d == null) return default;
|
||||
if (d is T t) return t;
|
||||
|
||||
for (var i = 0; i < VisualTreeHelper.GetChildrenCount(d); i++)
|
||||
|
||||
Reference in new issue
Block a user