Browse Source

Fixed UIA pattern matching looking at incorrect interface for IExpandCollapseProvider. (#15997)

release/11.1.3
Boyd Patterson 2 years ago
committed by Max Katz
parent
commit
3a507453c9
  1. 2
      src/Windows/Avalonia.Win32/Automation/AutomationNode.cs

2
src/Windows/Avalonia.Win32/Automation/AutomationNode.cs

@ -88,7 +88,7 @@ namespace Avalonia.Win32.Automation
return (UiaPatternId)patternId switch
{
UiaPatternId.ExpandCollapse => ThisIfPeerImplementsProvider<IExpandCollapseProvider>(),
UiaPatternId.ExpandCollapse => ThisIfPeerImplementsProvider<AAP.IExpandCollapseProvider>(),
UiaPatternId.Invoke => ThisIfPeerImplementsProvider<AAP.IInvokeProvider>(),
UiaPatternId.RangeValue => ThisIfPeerImplementsProvider<AAP.IRangeValueProvider>(),
UiaPatternId.Scroll => ThisIfPeerImplementsProvider<AAP.IScrollProvider>(),

Loading…
Cancel
Save