Giter Site home page Giter Site logo

dirkster99 / mlib Goto Github PK

View Code? Open in Web Editor NEW
48.0 4.0 16.0 7.94 MB

MLib is a set of WPF theming libraries based on MahApps.Metro and MUI

License: MIT License

Batchfile 0.23% C# 99.77%
metro wpf-theming-libraries theme-development theme light-theme dark-theme wpf xaml dotnet csharp

mlib's People

Contributors

dependabot[bot] avatar dirkster99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mlib's Issues

How to get main window to take style?

In App.xml I wrote:

    protected override void OnStartup(StartupEventArgs e)
    {
        themeInfos = AppearanceManager.GetInstance().CreateThemeInfos();
        AppearanceManager.GetInstance().SetDefaultThemes(themeInfos, true);
        AppearanceManager.GetInstance().SetTheme(themeInfos, "Dark", Colors.Red);
        base.OnStartup(e);
    }

And in MainWindows.xaml:

    <mWindowLib:MetroWindow ...>
             ...
             <Button Content="Hello"/>
    </mWindowLib:MetroWindow>

And while the button is dark, the window is not. I have MLib and MWindowLib packages installed.

What do I need to do to coax the window to change to use the style?

How do I change the accent coloring provided by the dark theme?

MetroWindowAccentColors

The border of the window I've created is blue, along with the resizing grip. I can't seem to reference MWindowLib.Themes in XAML, and because of my experience with styling in XAML I'm pretty much stuck after that haha.

Thanks in advance! I use multiple libraries of yours and find them all very useful.

Textbox in Toolbar causes exception when loading

I have a TextBox inside a Toolbar, and I get the exception

System.Windows.Markup.XamlParseException: 'Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.'

Exception: Cannot find resource named 'MetroTextBox'. Resource names are case sensitive.

Looking at the xaml I see:

Toolbar.xaml line 60:

<Style x:Key="{x:Static ToolBar.TextBoxStyleKey}" TargetType="{x:Type TextBox}" BasedOn="{StaticResource MetroTextBox}" /> But MetroTextBox does not exist. It seems like the theming for Toolbars is maybe incomplete? Combo boxes in toolbars seem to have different colors than when in a horizontal stack panel. Any thoughts?

MWindowLib 1.3 Nuget package broken

Something changed in the nuget packages for the 1.3 release. All the packages now have the library name as the Author (so it says "Mlib by Mlib" instead of "Dirkster.Mlib by Dirke Bahle" ) so they are showing as a completely separate package from the prior releases.

And MWindowLib will not install at all as it says it has a dependency on MWindowInterfacesLib (>= 1.3.0) which does not appear to be published on nugget.

Minimal Setup To integrate with Mahapps

What would the minimal setup be to set the accent color to the accent color of mahapps ?

This would purely be to style the Avalondock and its "tools" along with the rest of the application.

Thanks in advance!

MWindow not customizable?

Not able to style the close buttons, window unfocused border brush, nor the window drag-able behavior

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.