Browse Source

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

pull/16005/head
Boyd Patterson 2 years ago
committed by GitHub
parent
commit
86d6043fc3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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