You'll also need to modify the code behind of the window file so that the base class matches the MetroWindow class of the XAML file. ![]() Now you should have something like this (don't copy and paste this directly) Xmlns:mah="clr-namespace: assembly=MahApps.Metro" Add the namespace attribute inside the opening Window tag.Open up your main window, normally named MainWindow.xaml.To start with the full MahApps styling and full window support you need to change your normal Window to our MetroWindow. Make sure that all resource file names are Case Sensitive! Using the MetroWindow To adopt the MahApps.Metro theme, you will need to add the resource dictionaries to your App.xaml. With the Package Manager Console: PM> Install-Package MahApps.Metro -PreĪll resources of MahApp.Metro are located within separate resource dictionaries. ![]() If you want to use a pre-release packages of MahApps.Metro, you need to enable Include Prerelease in the NuGet UI: With the Package Manager Console: PM> Install-Package MahApps.Metro You can install MahApps.Metro via the NuGet UI or with the Package Manager Console. ![]() This guide will introduce you to how MahApps.Metro works and how to incorporate it into your app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |