Download and Install Metro Framework

In this tutorial, I'll show you How to Download & Install Metro Framework from Nuget/Offline without Visual Studio, Add Metro Framework to Toolbox, then create a simple dashboard in C#

The MetroFramework is a library help you design an awesome metro modern UI, brings Windows 8 UI to .NET Windows Forms application.

Supported platforms: Windows XP SP1/SP2/SP3, Windows Vista, Windows 7/8/10

To practice demo, you should create New Project, by selecting Visual C# on the left, then Windows and then select Windows Forms Application. Name your project "MetroUI" and then click OK.

After completing the creation of the new project, you need to right click on your project select Manage NuGet Packages -> search metro framework -> install as shown below.

install metro framework

To create a simple metro ui, you can add MetroTitle controls to your windows forms, then you can layout your metro dashboard form as shown below.

metro dashboard

Open your Form1 code behind, you need to change your inheritance from Form to MetroForm, then add your code to handle metro link click event as the following.

public partial class Form1 : MetroFramework.Forms.MetroForm
{
    public Form1()
    {
        InitializeComponent();
    }

    private void metroLink2_Click(object sender, EventArgs e)
    {
        MetroFramework.MetroMessageBox.Show(this, "Next");
    }

    private void metroLink1_Click(object sender, EventArgs e)
    {
        MetroFramework.MetroMessageBox.Show(this, "Back");
    }
}

We simply display the metro message box when we click the back and next link button.

VIDEO TUTORIALS