Skip to content

SwipeItemView and SwipeItem background doesn’t update on AppTheme change (Light/Dark) #31917

@b4j4

Description

@b4j4

Description

SwipeItemView and SwipeItem background doesn’t update on AppTheme change (Light/Dark).

[.Net10]

net10.mp4

[.Net9]

net9.mp4

Steps to Reproduce

  1. Open the SwipeViewDemos project.
  2. Navigate to SwipeViewEventsPage.
  3. Add a new SwipeItemView or SwipeItem with an AppThemeBinding for its background color. For example:
    <SwipeItemView BackgroundColor="{AppThemeBinding Dark={StaticResource Primary}, Light={StaticResource Yellow100Accent}}" />
  4. Run the app.
  5. In the list, open the “SwipeView events” item to navigate into the page.
  6. Reveal the swipe actions (swipe left/right to show the SwipeItemView).
  7. Toggle the app/OS theme between Light and Dark while the page is visible.
  8. Observe the SwipeItemView background:
    • Expected: it updates to the correct theme color after the theme change.
    • Actual: it remains with the initial color until the page is recreated or the background is reassigned programmatically.

Link to public reproduction project repository

https://github.com/dotnet/maui-samples/tree/main/10.0/UserInterface/Views/SwipeViewDemos

Version with bug

10.0.0-rc.1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.305

Affected platforms

iOS, Android, macOS

Tested On

iOS 26, macos 26, Android 13

Did you find any workaround?

No

Relevant log output

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions