WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

DataGrid RowDetails not changing theme at runtime

Open laracarbajal opened this issue 5 years ago • 5 comments

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.

laracarbajal avatar May 27 '20 20:05 laracarbajal

Hello JonasLara, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

ghost avatar May 27 '20 20:05 ghost

@anawishnoff @RBrid FYI ⬆️

Kyaa-dost avatar May 28 '20 18:05 Kyaa-dost

Hi. Is there any workaround for this issue?

JulienTheron avatar Dec 11 '20 17:12 JulienTheron

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

Kyaa-dost avatar Dec 11 '20 18:12 Kyaa-dost

Thanks JonasLara for patiently waiting while the team is still investigating the issue.

@anawishnoff @RBrid can we please have an update on this issue? Thanks

ghost avatar Jul 08 '21 06:07 ghost