Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<ui:NotifyIcon> dose not change theme and text language as the <MainWindow> dose. (V 2.0.1) #264

Closed
LHTXQ opened this issue Jul 3, 2022 · 0 comments
Assignees
Labels
bug Something isn't working controls Changes to the appearance or logic of custom controls. locked-due-to-inactivity themes Topic is related to managing themes

Comments

@LHTXQ
Copy link
Contributor

LHTXQ commented Jul 3, 2022

Describe the bug
A. Sometimes, the notifyicon' theme changes normally when the theme changes from dark to light at the first time, but does not change the theme as the mainwindow does when the theme changes from light to dark.

B. I use Resource Dictionary to place language resources, when change the language, the notifyicon's language dose not change as the mainwindow dose.

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ui:Resources Theme="Dark"/>
            <ResourceDictionary Source="pack://application:,,,/VirtualMechanicalLaboratory;component/Languages/English.xaml"/>
            <ResourceDictionary Source="pack://application:,,,/VirtualMechanicalLaboratory;component/Languages/Chinese.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>
<ui:NotifyIcon.Menu>
    <ContextMenu>
        <ui:MenuItem
            Click="MenuItem_Click"
            Header="{DynamicResource About}"
            SymbolIcon="BookInformation24"
            Tag="About" />
        <Separator />
    </ContextMenu>
</ui:NotifyIcon.Menu>

C. the notifyicon dose not disappear automatically after close the application, even i use notifyicon.dispose(); before close the application.

To Reproduce
Steps to reproduce the behavior:

A. Add a notifyicon to application, then change application's theme several times.

B. Do as bug description above and change language of the application.

C.Add a notifyicon to application and close the application.

Expected behavior
A. notifyicon's theme changes as the mainwindow's dose.

B.notifyicon's languaga changes as the mainwindow dose.

Screenshots
A.
image

B.
image

Desktop (please complete the following information):

  • OS: [Windows 11]
  • .NET: [.net 6.0]
  • Version: [R 2.0.1]
@LHTXQ LHTXQ added the bug Something isn't working label Jul 3, 2022
@pomianowski pomianowski added themes Topic is related to managing themes controls Changes to the appearance or logic of custom controls. labels Jul 3, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working controls Changes to the appearance or logic of custom controls. locked-due-to-inactivity themes Topic is related to managing themes
Projects
Status: Done
Development

No branches or pull requests

2 participants