Step 1
Create a Windows Application.
Step 2
Right click your Application => click Manage NuGet Package => Browse and find Metro Framework controls.
Step 3
Install four metro packages.They are
- MetroFramework
- MetroFramework.Fonts
- MetroFramework.Design
- MetroFramework.Runtime
Check that these four .DLLs are added in our application.
Step 4
Inherit MetroForm from Form1 class.
- public partial class Form1: MetroForm {
- public Form1() {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e) {}
- }
Normal Windows form application output is given below.
Metro-Windows form application output is given below:
How to Add Metro-Framework Controls to Toolbox
Step 1
Open Toolbox in Visual Studio.
Step 2
Add a new tap in toolbox. Right click toolbox, followed by clicking add tap. I added a tap (Tap Name is MetroControls).
Step 3
Right click MetroControls tap and click choose items.
Click Browse =>find Metroframework.dll (Our application bin folder)=> click Open.
After adding Metro Framework to choose item tap, click OK. Now, we get Metro Framework controls in our toolbox.