Skip to content

Commit

Permalink
Fixed UIA pattern matching looking at incorrect interface for IExpand…
Browse files Browse the repository at this point in the history
…CollapseProvider. (#15997)
  • Loading branch information
boydpatterson authored Jun 11, 2024
1 parent 82e3613 commit 86d6043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Windows/Avalonia.Win32/Automation/AutomationNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public virtual IRawElementProviderFragmentRoot? FragmentRoot

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>(),
Expand Down

0 comments on commit 86d6043

Please sign in to comment.