fixed a bug of Dialog

This commit is contained in:
NaBian committed 2020-05-18 23:04:35 +08:00
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++)