AmmyUI icon indicating copy to clipboard operation
AmmyUI copied to clipboard

Using MetroWindow from MahApps

Open jregnier opened this issue 7 years ago • 2 comments

Is it possible to use the MahApps MetroWindow instead of the regular window? It compiles but I'm getting some errors like "Partial declarations of 'MainWindow' must not specify different base classes" and another indicating different types in the XAML and code behind file.

using MahApps.Metro.Controls MetroWindow "MyProject.MainWindow" { ... }

and in code behind

public partial class MainWindow : MetroWindow { public MainWindow() { InitializeComponent(); } }

Also, great work with this just started to use it for a home project and I'm loving it so far!!

jregnier avatar Jun 06 '17 04:06 jregnier

Hello @jregnier,

Sorry, I missed your issue at the time. Do you still have this problem?

MetroWindow should definitely work, it has been used with Ammy by a lot of people already.

ionoy avatar Jun 15 '17 07:06 ionoy

I was able to figure it out, it didn't like the code behind having MetroWindow as a base class. all is well now thanks!

jregnier avatar Jun 19 '17 03:06 jregnier