Code Monkey home page Code Monkey logo

Comments (3)

sherlockforrest avatar sherlockforrest commented on June 12, 2024 1

@russkyc Thank you for your reply,There is no App.xaml for the Class Library Project. XAML, so I put the resource in the window resources, and I fixed the problem, I changed the order in which in the ResourceDictionary.MergedDictionaries .put Generic.xaml at the end,now it works;

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/Russkyc.ModernControls.WPF;component/Themes/BaseThemes/Light.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Russkyc.ModernControls.WPF;component/Themes/ColorThemes/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Russkyc.ModernControls.WPF;component/Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
        <!--<styles:ModernControlsWpf BaseTheme="Dark" ColorTheme="Blue" />-->
    </Window.Resources>

image

from modern-controls-wpf.

sherlockforrest avatar sherlockforrest commented on June 12, 2024

image

from modern-controls-wpf.

russkyc avatar russkyc commented on June 12, 2024

Hi @sherlockforrest , have you by any chance tried to embed the resource inside the App.xaml instead of the window? If you are using the latest version, it should be implemented this way:

    <Application.Resources>
        <!--  ModernControls WPF, change the base theme and color theme according to your liking  -->
        <styles:ModernControlsWpf BaseTheme="Dark" ColorTheme="Green" />
    </Application.Resources>

Let me know if you still face the same issue after, I'll also try to reproduce this

from modern-controls-wpf.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.