Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

DataGrid RowDetails not changing theme at runtime #3305

Open

Description

@laracarbajal

Describe the bug

DataGrid RowDetails not changing theme at runtime

Steps to Reproduce

Steps to reproduce the behavior:

  1. Just add a DataGrid to a project and set the RowDetailsVisibilityMode to VisibleWhenSelected in order to observe the issue.
  2. Add a button with a Click event to be able to change the app theme. RequestedTheme = ElementTheme.Dark or RequestedTheme = ElementTheme.Light will do the trick.
  3. As yo can see, the background of the RowDetail did not change.

Expected behavior

See some change according with the theme color.

Screenshots

Annotation 2020-05-27 134035

Annotation 2020-05-27 134238

Environment

NuGet Package(s):  
`Microsoft.Toolkit.Uwp.UI.Controls`
`Microsoft.Toolkit.Uwp.UI.Controls.DataGrid`

Package Version(s):  
6.0 (Both)

Windows 10 Build Number:
Windows 10, Version 1909, Build 18363.836

App min and target version:
- [ ] May 2019 Update (18362)


Device form factor:
Desktop

Visual Studio 
2019 (version: 16.5.5) 

Additional context

I've noticed some issues like TitleBar color not change even when I use var titleBar = ApplicationView.GetForCurrentView().TitleBar; and change the properties of it (I asked on Stack Overflow about that and some people can successfully change the titlebar color with my exact code). I do not know if that can be related.

Activity

  1. added
    bug 🐛An unexpected issue that highlights incorrect behavior
    on May 27, 2020
  2. Kyaa-dost commented on May 28, 2020

    @Kyaa-dost
    Contributor

    @anawishnoff @RBrid FYI ⬆️

  3. added this to the 7.0 milestone on Jun 22, 2020
  4. added
    help wantedIssues identified as good community contribution opportunities
    on Jun 22, 2020
  5. JulienTheron commented on Dec 11, 2020

    @JulienTheron

    Hi. Is there any workaround for this issue?

  6. Kyaa-dost commented on Dec 11, 2020

    @Kyaa-dost
    Contributor

    @JulienTheron let's see if the Datagrid team knows of any workaround for this issue. @anawishnoff or @RBrid? ⬆️

  7. modified the milestones: 7.0, 7.1 on Mar 9, 2021
  8. deleted a comment from on Aug 31, 2021
  9. deleted a comment from on Aug 31, 2021
  10. deleted a comment from on Aug 31, 2021
  11. modified the milestones: 7.1, 7.2/8.0? on Aug 31, 2021
  12. added a commit that references this issue on Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DataGrid 🔠Issues on DataGrid controlIn-PR 🚀bug 🐛An unexpected issue that highlights incorrect behaviorhelp wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions