[Windows] ItemsSource Does Not Dynamically Set to null in CarouselView
Nobody has claimed this yet.
- 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
- Launch the application CarouselViewIssue 22.zip
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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