dirkster99 / mlib Goto Github PK
View Code? Open in Web Editor NEWMLib is a set of WPF theming libraries based on MahApps.Metro and MUI
License: MIT License
MLib is a set of WPF theming libraries based on MahApps.Metro and MUI
License: MIT License
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?Not able to style the close buttons, window unfocused border brush, nor the window drag-able behavior
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?
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!
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.