-
Notifications
You must be signed in to change notification settings - Fork 788
fix: Namespace and logic in ProgressBarAutomationPeer
#20501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20501/wasm-skia-net9/index.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes namespace issues and refactors the implementation of the ProgressBarAutomationPeer to align with the updated logic requirements. Key changes include:
- Updating namespace declarations in several files.
- Refactoring ProgressBarAutomationPeer to inherit from RangeBaseAutomationPeer and use the Owner property.
- Introducing a TestAutomationPeerListener for testing purposes.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/Uno.UI/UI/Xaml/Automation/Peers/RangeBaseAutomationPeer.cs | Updated namespace syntax to use the semicolon form. |
src/Uno.UI/UI/Xaml/Automation/Peers/AutomationPeer.skia.cs | Adjusted getter for AutomationPeerListener to include a test listener. |
src/Uno.UI/Microsoft/UI/Xaml/Controls/ProgressBar/ProgressBarAutomationPeer.cs | Refactored class inheritance and implementation of IRangeValueProvider to use Owner instead of a local _owner. |
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ProgressBar.cs | Added tests to validate the new AutomationPeerListener behavior. |
build/PackageDiffIgnore.xml | Updated package diff ignore settings for ProgressBarAutomationPeer. |
Comments suppressed due to low confidence (1)
src/Uno.UI/Microsoft/UI/Xaml/Controls/ProgressBar/ProgressBarAutomationPeer.cs:54
- [nitpick] Consider renaming GetImpl to GetProgressBar for improved clarity, as it clearly indicates the purpose of casting Owner to ProgressBar.
private ProgressBar GetImpl() => (ProgressBar)Owner;
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20501/wasm-skia-net9/index.html |
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20501/docs/index.html |
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20501/wasm-skia-net9/index.html |
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20501/docs/index.html |
@Mergifyio backport release/stable/6.0 |
🟠 Waiting for conditions to match
|
e275664
to
da819ab
Compare
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20501/docs/index.html |
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20501/wasm-skia-net9/index.html |
|
da819ab
to
c9c3a34
Compare
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20501/wasm-skia-net9/index.html |
@Mergifyio backport release/stable/6.0 |
✅ Backports have been created
|
The build 167251 found UI Test snapshots differences: Details
|
…6.0/pr-20501 fix: Namespace and logic in `ProgressBarAutomationPeer` (backport #20501)
GitHub Issue (If applicable): closes #20499
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):