question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

changing system theme don't change app theme

See original GitHub issue

Describe the bug changing system theme don’t change app theme

To Reproduce Steps to reproduce the behavior:

<Application
  x:Class="AbadisDic.App"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:hc="https://handyorg.github.io/handycontrol"
  xmlns:system="clr-namespace:System;assembly=netstandard"
  StartupUri="Views/Win.xaml"
  DispatcherUnhandledException="OnDispatcherUnhandledException">
  <Application.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <hc:Theme />
        <hc:ThemeResources UsingSystemTheme="True" />

        <!-- Other merged dictionaries here -->
      </ResourceDictionary.MergedDictionaries>
      <!-- Other app resources here -->
    </ResourceDictionary>
  </Application.Resources>
</Application>

Expected behavior Theme should change

Screenshots image

Environment (please complete the following information):

  • .net: net6.0-windows
  • IDE: vs2022
  • Version: 3.3.9

addition it’s sync with windows theme when start but it won’t change on runtime

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ghost1372commented, Dec 23, 2021

tanks for fix. I look forward for Nuget release.

new version 3.3.10 released

0reactions
GihanSoftcommented, Dec 19, 2021

tanks for fix. I look forward for Nuget release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting android theme to follow system does not change ...
In the settings of my app i have it so that you are able to switch the theme off the app between Light,...
Read more >
Change the app theme
In this codelab, you create a color theme for your app. ... How to set colors as part of your app theme; The...
Read more >
Respond to system theme changes - .NET MAUI
NET MAUI app can respond to operating system theme changes by using the AppThemeBinding markup extension, and the SetAppThemeColor and ...
Read more >
Use Dark theme in your apps
In some apps, you can change the color scheme. Dark theme can be easier to see, and it can save battery on some...
Read more >
Change themes in Figma
Go to Preferences > Theme. Select an option from the list of themes. Your Figma design file and the file browser will immediately...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found