I have a problem with Inspect for WPF application, it doesn't recognize Ribbon currently content when it switches, had with problem also with other such software with Yours Ribbon. Is this the Devexpress error in Ribbon? Attached video.
UI Automation support - Ribbon items are not recognized after tabs are switched
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
- v15.2.4Download Official Update
- v15.1.8Download Official Update
Hello Marek,
I've inspected the project with the RibbonControl but do not see the same issue (see the attached screencast). Would you please send us a simple sample where we can reproduce the same problematic behavior? This will help us find the cause of the issue and suggest a more suitable solution. We are looking forward to your response.
Thanks,
Andrey
This is my example. Still sth is wrong. Attached solution, video and my Inspect tool.
Hi Marek,
Many thanks for your sample. Andrey didn't notice the issue, since the Highlight Rectangle option was disabled. Now I clearly see it.
The issue occurs because we don't rebuild automation peers when ribbon tabs are switched. I will inform our developers about this issue.
As a quick fix, you can manually reset the cache in the SelectedPageChanged event handler - see the attached sample.
Glad I could help. Yours sample resolved the issue.
Thanks.
Another problem: when merging two Ribbons I cannot see with Inspect the attached ribbon buttons. Can sth be done with it?
Thank you for your update. Our developers will research this issue as well.
Could I get some quick fix for this? As for previous problem.
I have not managed to find a quick workaround so far. The interesting point with this issue is that automation peers for merged items are properly created. Our developers will research why items are still unreachable in this case.
Will I be informed when solution for this will be available?
Sure, Marek. This thread will be updated and you will be notified as soon as we have any results.
Andrey
Hi, nothing new on the subject?
Hello,
Our developers are working on this issue, however, we cannot provide you with any precise time frame as to when this issue will be fixed. We will update this thread as soon as we have any results.
Thanks,
Kirill