mirror of
https://github.com/4sval/FModel.git
synced 2026-09-18 22:44:26 -05:00
This commit is contained in:
@@ -11,7 +11,9 @@ public static class VisualTreeExtensions
|
||||
{
|
||||
if (current is T t)
|
||||
return t;
|
||||
current = VisualTreeHelper.GetParent(current);
|
||||
current = current is FrameworkContentElement contentElement
|
||||
? contentElement.Parent
|
||||
: VisualTreeHelper.GetParent(current);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user