fix(border-color): keep ComboBox popup clicks inside LeftPanel (TASK 63)
This commit is contained in:
@@ -54,9 +54,12 @@ public partial class LeftPanel : UserControl
|
||||
{
|
||||
while (child != null && !ReferenceEquals(child, ancestor))
|
||||
{
|
||||
child = child is Visual or System.Windows.Media.Media3D.Visual3D
|
||||
var next = child is Visual or System.Windows.Media.Media3D.Visual3D
|
||||
? VisualTreeHelper.GetParent(child)
|
||||
: LogicalTreeHelper.GetParent(child);
|
||||
: null;
|
||||
child = next
|
||||
?? LogicalTreeHelper.GetParent(child)
|
||||
?? (child as FrameworkElement)?.TemplatedParent;
|
||||
}
|
||||
return child != null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user