Code Monkey home page Code Monkey logo

mahapps.com's Introduction

Stand With Ukraine

mahapps.com

Wyam

This is the repository for the new web site of MahApps.Metro v2.0.

You can reach the old site for MahApps.Metro v1.6.5 here.

build

The site will be generated with wyam.io.

To build and preview the site locally you can open the commandline (in this case it's powershell) and run the following script

.\build.ps1

If the build is ready you can go to your favorite browser and open this url: http://localhost:5080

mahapps.com's People

Contributors

froggiefrog avatar gideonsimon avatar isachpaz avatar itdancer13 avatar jasonweinzierl avatar jm2k69 avatar joe-houghton avatar kiwill avatar punker76 avatar tarboeuf avatar timothylcooke avatar timunie avatar wpfadvocate avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mahapps.com's Issues

MetroFlatButton in 2.0.0

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}"

DialogParticipation.Register="{Binding}" Memory leak

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

Need documentation on some missing styles after migration (1.6.5 => 2.0.0)

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.
  • The same goes for 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.

GlowBrush="{DynamicResource AccentColorBrush}" Unresolved

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

Transition from ThemeManager to ControlzEx

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.

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.