dotnet / dotnet/maui

[Windows] ItemsSource Does Not Dynamically Set to null in CarouselView

Open
#29,472 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-controls-collectionview partner/syncfusion platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

Description

When the ItemsSource property of the CarouselView is set to null, the CarouselView does not dynamically update to reflect the change. Instead, the previously bound items remain displayed, and the CarouselView does not clear its content.

Actual Output Expected Output
Steps to Reproduce
  1. Launch the application CarouselViewIssue 22.zip
  2. Select None radiobutton and Observe the behavior.

Actual Behavior:
When the ItemsSource of the CarouselView is dynamically set to null, the CarouselView does not update its content. The previously displayed items remain visible.

Expected Behavior:
When the ItemsSource of the CarouselView is dynamically set to null, the CarouselView should set to null.

Link to public reproduction project repository

No response

Version with bug

9.0.60 SR6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached CarouselViewIssue 22.zip reproduction and run it on Windows with .NET MAUI 9.0.60 SR6; select the None radio button to observe the stale items. Trace the CarouselView ItemsSource update path, and consider the issue complete when setting ItemsSource to null clears the previously displayed items.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.