Skip to content

feat: Add support for WrapMode in PipsPager - #20812

Merged
MartinZikmund merged 3 commits into
masterfrom
dev/doti/add-wrapmode-pipspager
Dec 10, 2025
Merged

MartinZikmund merged 3 commits into
masterfrom
dev/doti/add-wrapmode-pipspager

Conversation

@morning4coffe-dev

Copy link
Copy Markdown
Member

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:

  • ✨ Feature

PR Checklist ✅

Please check if your PR fulfills the following requirements:

@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Jun 18, 2025
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@morning4coffe-dev morning4coffe-dev mentioned this pull request Jun 29, 2025
2 tasks done
@github-actions

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot added the stale This item has been marked as stale and will be closed if there is no activity. label Aug 20, 2025
@github-actions

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions Bot closed this Aug 31, 2025
@morning4coffe-dev

Copy link
Copy Markdown
Member Author

CC @MartinZikmund

@github-actions github-actions Bot removed the stale This item has been marked as stale and will be closed if there is no activity. label Sep 15, 2025
@MartinZikmund
MartinZikmund force-pushed the dev/doti/add-wrapmode-pipspager branch from 662920a to 7ea3dc2 Compare September 24, 2025 15:19
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@CLAassistant

CLAassistant commented Sep 24, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 176989 has failed on Uno.UI - CI.

@MartinZikmund

Copy link
Copy Markdown
Member

@morning4coffe-dev seems there are a few failures remaining

@github-actions

github-actions Bot commented Dec 6, 2025

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot added the stale This item has been marked as stale and will be closed if there is no activity. label Dec 6, 2025
@morning4coffe-dev morning4coffe-dev removed the stale This item has been marked as stale and will be closed if there is no activity. label Dec 8, 2025
@MartinZikmund
MartinZikmund marked this pull request as ready for review December 8, 2025 13:29
Copilot AI review requested due to automatic review settings December 8, 2025 13:29
@MartinZikmund

Copy link
Copy Markdown
Member

@morning4coffe-dev check the failures please, then we can merge

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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 WrapMode property with None and Wrap enum 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

Copilot AI review requested due to automatic review settings December 8, 2025 15:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

@unodevops

Copy link
Copy Markdown
Contributor

@jeromelaban

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund force-pushed the dev/doti/add-wrapmode-pipspager branch from 6f3209f to f218111 Compare December 8, 2025 17:19
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 186769 has failed on Uno.UI - CI.

Copilot AI review requested due to automatic review settings December 10, 2025 11:36
@MartinZikmund
MartinZikmund force-pushed the dev/doti/add-wrapmode-pipspager branch from f218111 to 309efde Compare December 10, 2025 11:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated no new comments.

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund merged commit 2229c3f into master Dec 10, 2025
@MartinZikmund
MartinZikmund deleted the dev/doti/add-wrapmode-pipspager branch December 10, 2025 13:15
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/automation Categorizes an issue or PR as relevant to project automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants