From 3a507453c9e6668f7c7bcf9bdfa5a48cb7c24fda Mon Sep 17 00:00:00 2001 From: Boyd Patterson Date: Tue, 11 Jun 2024 11:47:51 -0500 Subject: [PATCH] Fixed UIA pattern matching looking at incorrect interface for IExpandCollapseProvider. (#15997) --- src/Windows/Avalonia.Win32/Automation/AutomationNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Windows/Avalonia.Win32/Automation/AutomationNode.cs b/src/Windows/Avalonia.Win32/Automation/AutomationNode.cs index 8489e6ec29..0b3e707acc 100644 --- a/src/Windows/Avalonia.Win32/Automation/AutomationNode.cs +++ b/src/Windows/Avalonia.Win32/Automation/AutomationNode.cs @@ -88,7 +88,7 @@ namespace Avalonia.Win32.Automation return (UiaPatternId)patternId switch { - UiaPatternId.ExpandCollapse => ThisIfPeerImplementsProvider(), + UiaPatternId.ExpandCollapse => ThisIfPeerImplementsProvider(), UiaPatternId.Invoke => ThisIfPeerImplementsProvider(), UiaPatternId.RangeValue => ThisIfPeerImplementsProvider(), UiaPatternId.Scroll => ThisIfPeerImplementsProvider(),