Skip to content

changing system theme don't change app theme #107

@GihanSoft

Description

@GihanSoft

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions