From d6b09a9f4b2ca4767ca89da712be319610161398 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Wed, 23 Feb 2022 23:08:27 +0100 Subject: [PATCH] Use correct interface for root window impl. --- src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs b/src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs index 8c7dfb5de2..1085aa1b42 100644 --- a/src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs +++ b/src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs @@ -22,8 +22,8 @@ namespace Avalonia.Win32.Automation public override IRawElementProviderFragmentRoot? FragmentRoot => this; public new IRootProvider Peer { get; } - public IWindowImpl? WindowImpl => Peer.PlatformImpl as IWindowImpl; - + public IWindowBaseImpl? WindowImpl => Peer.PlatformImpl as IWindowBaseImpl; + public IRawElementProviderFragment? ElementProviderFromPoint(double x, double y) { if (WindowImpl is null)