Skip to content

Conversation

vargbahu
Copy link
Contributor

@vargbahu vargbahu commented Sep 9, 2025

Description

When the content of the Avalonia UI is changed dynamically (for example, a popup window appears), the affected node's Children list is not updated in the PlatynUI.Extension.Provider.Client. This means that the new nodes cannot be found by FindSingleNode.

This modification contains a new keyword that calls the Invalidate() function of the node specified by the xpath expression.

Other extra fixes in this PR:

  • doubleclick time is fixed (it was retrieved as milliseconds, but should be handled as seconds)
  • type keys without context keyword is added

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How Has This Been Tested?

A dynamic button generation feature is added to the AvaloniaTestApp. Use the tests/robot/playground/dynamic_content.robot
test to try this out.

Test Configuration:

  • Firmware version: -
  • Hardware: -
  • OS: Debian 12
  • Browser (if applicable): -

Checklist

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • [] I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.

Additional Notes

@vargbahu vargbahu force-pushed the invalidate-rootNode-in-PlatynUI.Extension.Provider.Client branch 2 times, most recently from 00e7571 to 84f3410 Compare October 7, 2025 14:32
@vargbahu vargbahu force-pushed the invalidate-rootNode-in-PlatynUI.Extension.Provider.Client branch from ebf179f to feb5046 Compare October 17, 2025 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant