Skip to content

Conversation

@SuthiYuvaraj
Copy link
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Root Cause:

The UpdateHorizontalScrollBarVisibility method was being triggered before the ScrollViewer was initialized when modifying the HorizontalScrollbarVisibility for a CarouselView. This resulted in scrollbar is not updated properly

Description of Change:

Ensured to update the HorizontalScrollbarVisibility and VerticalScrollbarVisibility , after the ScrollViewer is fully initialized. Once the ScrollViewer is confirmed to be non-null, updated the scrollbar visibility settings for both horizontal and vertical scrollbars accordingly.

Issues Fixed

Fixes #15253

Tested the behaviour in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Output Screenshot

Before Issue Fix After Issue Fix
Before Fix After Fix

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label May 6, 2025
@dotnet-policy-service
Copy link
Contributor

Hey there @@SuthiYuvaraj! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label May 6, 2025
@jsuarezruiz jsuarezruiz added platform/windows area-controls-collectionview CollectionView, CarouselView, IndicatorView labels May 6, 2025
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

}
else
{
UpdateHorizontalScrollBarVisibility();
Copy link
Contributor

Choose a reason for hiding this comment

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

If both UpdateHorizontalScrollBarVisibility() and UpdateVerticalScrollBarVisibility() are always called together, could consolidate them into a single method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @jsuarezruiz , I have included the UpdateScrollBarVisibility() method to handle both horizontal and vertical updates. Please review it and let me know if you have any feedback or concerns.

@SuthiYuvaraj SuthiYuvaraj marked this pull request as ready for review May 6, 2025 13:26
@SuthiYuvaraj SuthiYuvaraj requested a review from a team as a code owner May 6, 2025 13:26
@SuthiYuvaraj SuthiYuvaraj requested review from PureWeen and rmarinho May 6, 2025 13:26
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@PureWeen PureWeen changed the base branch from main to inflight/current May 13, 2025 14:22
@PureWeen PureWeen merged commit c60db11 into dotnet:inflight/current May 13, 2025
78 checks passed
github-actions bot pushed a commit that referenced this pull request May 13, 2025
…n CarouselView on Windows platform (#29343)

* Update ItemsViewHandler.Windows.cs

* Update ItemsViewHandler.Windows.cs

* Commit for ScrollBarVisibility

* Testcase included

* Update Issue15253.cs

* Tes

* testcases enabled

* Update Issue15253.cs

* Image updated

* method change
PureWeen pushed a commit that referenced this pull request May 14, 2025
…n CarouselView on Windows platform (#29343)

* Update ItemsViewHandler.Windows.cs

* Update ItemsViewHandler.Windows.cs

* Commit for ScrollBarVisibility

* Testcase included

* Update Issue15253.cs

* Tes

* testcases enabled

* Update Issue15253.cs

* Image updated

* method change
# Conflicts:
#	src/Controls/tests/TestCases.HostApp/Issues/Issue28098.xaml.cs
#	src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue28098.cs
PureWeen pushed a commit that referenced this pull request May 14, 2025
…n CarouselView on Windows platform (#29343)

* Update ItemsViewHandler.Windows.cs

* Update ItemsViewHandler.Windows.cs

* Commit for ScrollBarVisibility

* Testcase included

* Update Issue15253.cs

* Tes

* testcases enabled

* Update Issue15253.cs

* Image updated

* method change
github-actions bot pushed a commit that referenced this pull request May 15, 2025
…n CarouselView on Windows platform (#29343)

* Update ItemsViewHandler.Windows.cs

* Update ItemsViewHandler.Windows.cs

* Commit for ScrollBarVisibility

* Testcase included

* Update Issue15253.cs

* Tes

* testcases enabled

* Update Issue15253.cs

* Image updated

* method change
# Conflicts:
#	src/Controls/tests/TestCases.HostApp/Issues/Issue28098.xaml.cs
#	src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue28098.cs
PureWeen added a commit that referenced this pull request May 21, 2025
For more information about inflight process check
https://github.com/dotnet/maui/wiki/Inflight-Branch-Process

# .NET MAUI Release Notes

## New Release: May 21, 2025

We're excited to announce a new release of .NET MAUI with several bug
fixes and improvements across various platforms.

### Bug Fixes

#### iOS
- **Map Control**: Fixed crash when navigating to a page containing a
map more than once (#29369)
- **CarouselView**: Fixed bounce-back behavior when Loop=false, ensuring
proper scrolling experience (#29318)
- **UIView**: Fixed NullReferenceException for UIView not being in
UIWindow (#29460)

#### Windows
- **CarouselView**: Fixed HorizontalScrollBarVisibility="Never" not
working properly (#29343)
- **UI Controls**: Fixed the color not being applied to the
Expand/Collapse Chevron icon (#29140)

#### Windows & macOS
- **Modal Navigation**: Fixed issue where Disappearing event was not
triggered when closing a window with a modal page (#29129)

#### Android
- **Modal Pages**: Improved inheritance of StatusBar and NavigationBar
background colors (#28568)
- **Footer Scrolling**: Fixed footer scrolling issues in list controls
(#29381)
- **Modal Pages**: Improved inheritance of StatusBar and NavigationBar
background colors on modal pages (#28568)

#### Cross-Platform
- **CarouselView**: Fixed ItemsLayout runtime updates to ensure proper
layout behavior (#29447)
- **CollectionView**: Fixed various issues in CollectionView
implementation (#29423)

### Testing Improvements
- Added feature matrix UITest cases for CollectionView dynamic changes
(#29424)

### Code Quality
- Fixed code formatting issues across the codebase
- Minor typo corrections (#29379)

### Contributors

This release was made possible by the hard work of our dedicated team
and community contributors. We'd like to extend our gratitude to
everyone who has contributed to this release.

### Installation

This update is available through NuGet and the .NET SDK. Update your
projects to get access to these fixes.

### Known Issues

Please refer to our issue tracker for any known issues and their
workarounds.

---

For more information about .NET MAUI, visit [the official
documentation](https://docs.microsoft.com/dotnet/maui/).
PureWeen pushed a commit that referenced this pull request May 21, 2025
…n CarouselView on Windows platform (#29343)

* Update ItemsViewHandler.Windows.cs

* Update ItemsViewHandler.Windows.cs

* Commit for ScrollBarVisibility

* Testcase included

* Update Issue15253.cs

* Tes

* testcases enabled

* Update Issue15253.cs

* Image updated

* method change
# Conflicts:
#	src/Controls/tests/TestCases.HostApp/Issues/Issue28098.xaml.cs
#	src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue28098.cs
@github-actions github-actions bot locked and limited conversation to collaborators Jun 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-collectionview CollectionView, CarouselView, IndicatorView community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows][CarouselView] HorizontalScrollBarVisibility="Never" not working in CarouselView on Windows platform

3 participants