diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs index 2bc28b44fb5..fb7854bc8f8 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs @@ -1181,7 +1181,14 @@ public Point GetClickablePoint() try { _publicCallInProgress = true; - result = GetClickablePointCore(); + if (IsOffscreenCore()) + { + result = new Point(double.NaN, double.NaN); + } + else + { + result = GetClickablePointCore(); + } } finally {