mahapps / mahapps.com Goto Github PK
View Code? Open in Web Editor NEWNew web site for MahApps.Metro
Home Page: https://mahapps.com
License: MIT License
New web site for MahApps.Metro
Home Page: https://mahapps.com
License: MIT License
I followed the Mahapps Quick start guide to code my first Mahapps.Metro WPF application. Using v2.0.0 alpha.
`<Controls:MetroWindow x:Class="MahAppsMetroSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
Title="DeepSense"
GlowBrush="{DynamicResource AccentColorBrush}"
WindowStartupLocation="CenterScreen">
<Controls:MetroWindow.RightWindowCommands>
<Controls:WindowCommands>
<Button Content="settings" />
<Button>
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconModern Width="24" Height="24" Kind="FoodCupcake" />
<TextBlock Margin="4 0 0 0" VerticalAlignment="Center" Text="deploy cupcakes" />
</StackPanel>
</Button>
</Controls:WindowCommands>
</Controls:MetroWindow.RightWindowCommands>
<Grid>
</Grid>
</Controls:MetroWindow>`
The GlowBrush="{DynamicResource AccentColorBrush}" seems unresolved. Is there any reference I have skipped? Unable to troubleshoot, help is appreciated.
Thanks
The ThemeManager can be overridden to customize the Theme generation. This should be documented.
The question is: here or at ControlzEx?
/cc @batzen
When MahApps/MahApps.Metro#4022 is merged we need to update the docs. Additionally the docs should provide more info on how to create a custom data template. See: MahApps/MahApps.Metro#4023
@punker76 You can assign me, I will do the updates once the PR is merged.
Happy coding
Tim
I am using MahApps.Metro, v1.6.5.
MetroWindow with mah:DialogParticipation.Register="{Binding}"
doesn't get disposed after the ShowDialog() call.
Example usage: I have two windows - MainWindow and MyDialogView. Each has it's own view model - MainWindowViewModel and MyDialogViewModel.
MainWindowViewModel contains a OpenDialogCommand, which opens the dialog view.
MyDialogViewModel contains a CloseCommand, which raises an OnClose event. The MainWindowViewModel handles the OnClose event and closes the dialog window.
For easier debugging I instantiate a large byte array in the MyDialogViewModel constructor. If I open and close the dialog window multiple times the memory usage only increases (by 1GB). But if I remove the DialogParticipation.Register parameter, then the memory usage gets decreased when the garbage collector runs.
I prepared an example here
Hello! It looks like that MetroFlatButton moved or got name change treatment since 2.0.0 alpha version. What is new way to reference it?
This is what i'm using now:
BasedOn="{StaticResource MetroFlatButton}"
I'm migrating my .NET 4.7.2 WPF application using MahApps.Metro 1.6.5 to .NET Core 3.0 using MahApp.Metro 2.0.0-alpha0531 and some of my styles that were working fine simply break at runtime with the newest version.
MetroListBox
style is not referenced anymore thus break the styling of my ListBox.MetroListBoxItem
.AccentedSquareButtonStyle
style does not exist anymore and break the styling of my Buttons.SearchMetroTextBox
style does not exist anymore and break the styling of my TextBox.I've carefullly watched the documentation and searched for those missing styles but couldn't find any equivalent/migration guide for these particular components.
Use https://wyam.io static site generator for the mahapps.com web site.
Preview
I used MahApps.Metro.ThemeManager.AddAccent in my project to add custom accents. How do I do the same thing now since ThemeManager in MahApps.Metro has been removed in 2.0? I looked for documentation on this but was not able to find anything useful.
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.