Repository navigation
feat: Add support for WrapMode in PipsPager - #20812
Conversation
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20812/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20812/docs/index.html |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 10 days. |
|
This PR was closed because it has been stalled for 10 days with no activity. |
662920a to
7ea3dc2
Compare
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20812/docs/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20812/wasm-skia-net9/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20812/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20812/docs/index.html |
|
|
|
@morning4coffe-dev seems there are a few failures remaining |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 10 days. |
|
@morning4coffe-dev check the failures please, then we can merge |
There was a problem hiding this comment.
Pull request overview
This PR adds WrapMode support to the PipsPager control by porting changes from WinUI 1.8-stable (previously at 1.4.2). The feature enables circular navigation where clicking the next button on the last page wraps to the first page, and clicking previous on the first page wraps to the last page.
Key changes include:
- Addition of
WrapModeproperty withNoneandWrapenum values - Updated navigation button logic to support wrap-around navigation
- Layout virtualization management to prevent visual bugs during wrap navigation
- Enhanced button visibility logic to show navigation buttons at edges when wrap is enabled
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Uno.UI/UI/Xaml/Controls/PipsPager/PipsPager.xaml | Updated WinUI reference comment to 1.8-stable |
| src/Uno.UI/UI/Xaml/Controls/PipsPager/PipsPager.cs | Core wrap logic: navigation handlers, virtualization control, button visibility updates |
| src/Uno.UI/UI/Xaml/Controls/PipsPager/PipsPager.Properties.cs | Added WrapMode dependency property definition |
| src/Uno.UI/UI/Xaml/Controls/PipsPager/PipsPager.Header.cs | Added member variables for layout tracking and virtualization state |
| src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml.Controls/PipsPager.cs | Removed NotImplemented attributes from WrapMode property |
| src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/PipsPagerTests/PipsPagerPage.xaml.cs | Added WrapMode selection handler and navigation helper methods |
| src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/PipsPagerTests/PipsPagerPage.xaml | Added WrapMode ComboBox control and improved formatting |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20812/wasm-skia-net9/index.html |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20812/docs/index.html |
6f3209f to
f218111
Compare
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20812/docs/index.html |
|
|
f218111 to
309efde
Compare
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20812/docs/index.html |
Ported as part of investigation of #20577, as this PR also adds updated tests and update virtualization methods to be in-line with WinUI 1.8-stable.
PR Type:
PR Checklist ✅
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.