diff --git a/src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs b/src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs index 435e0671df..8c7dfb5de2 100644 --- a/src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs +++ b/src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs @@ -2,6 +2,7 @@ using System.Runtime.InteropServices; using Avalonia.Automation.Peers; using Avalonia.Automation.Provider; +using Avalonia.Platform; using Avalonia.Win32.Interop.Automation; #nullable enable @@ -21,7 +22,7 @@ namespace Avalonia.Win32.Automation public override IRawElementProviderFragmentRoot? FragmentRoot => this; public new IRootProvider Peer { get; } - public WindowImpl? WindowImpl => Peer.PlatformImpl as WindowImpl; + public IWindowImpl? WindowImpl => Peer.PlatformImpl as IWindowImpl; public IRawElementProviderFragment? ElementProviderFromPoint(double x, double y) {