Hi,
We migrated to .NET 6/.NET 8 from .NET Framework and are experiencing issues with Collapsed Groups in the ribbon.
The problem is that there are no child elements in the collapsed group element of the TabItem (it is collapsed if it has too many items), which should be returned by automation peer.
In the .NET Framework version, these elements are present.
Short sample of XAML:
<ribbon:Ribbon>
<ribbon:Ribbon.ContextualTabGroups>
<ribbon:ContextualTabGroup x:Name="UIrResultGrp" Label="´TabGroup 1" IsActive="True">
<ribbon:Tab x:Name="UIrResult" Label="Tab One" KeyTipAccessText="L">
<ribbon:Group Label="Collapsed Group">
...Many Buttons...
</ribbon:Group>
</ribbon:Tab>
</ribbon:ContextualTabGroup>
</ribbon:Ribbon.ContextualTabGroups>
</ribbon:Ribbon>
A good tool to demonstrate this problem is FlaUInspect.
I am aware that there were some automation issues during the transition to .NET 6. Could this be another such issue, or is there something else we should consider?
I can provide screenshots or test projects if needed.
Best regards,
Martin.