How To Add Metro-Framework To Our Application - Part Two

Step 1

Create a Windows Application. 

Framework

Step 2

Right click your Application => click Manage NuGet Package => Browse and find Metro Framework controls. 

Framework

Step 3

Install four metro packages.They are
  • MetroFramework
  • MetroFramework.Fonts
  • MetroFramework.Design
  • MetroFramework.Runtime

    Framework

Check that these four .DLLs are added in our application. 

Framework

Step 4

Inherit MetroForm from Form1 class.

  1. public partial class Form1: MetroForm {  
  2.     public Form1() {  
  3.         InitializeComponent();  
  4.     }  
  5.     private void Form1_Load(object sender, EventArgs e) {}  
  6. }  
Normal Windows form application output is given below.

Framework

Metro-Windows form application output is given below:

Framework

How to Add Metro-Framework Controls to Toolbox

Step 1

Open Toolbox in Visual Studio.

Framework

Step 2

Add a new tap in toolbox. Right click toolbox, followed by clicking add tap. I added a tap (Tap Name is MetroControls). 

Framework

Step 3

Right click MetroControls tap and click choose items. 

Framework

Click Browse =>find Metroframework.dll (Our application bin folder)=> click Open.

Framework

After adding Metro Framework to choose item tap, click OK. Now, we get Metro Framework controls in our toolbox.

Framework