Windows Forms: Material Design for .Net WinForms in C#
By FoxLearn 7/4/2017 9:36:25 PM 22.86K
Material Design for .Net in C#/VB.Net
Step 1: Click New Project, then select Visual C# on the left, then Windows and then select Windows Forms Application. Name your project "SkinWinforms" and then click OK
Step 2: Right click on your project select Manage NuGet Packages -> Search MaterialSkin -> Install
Theming WinForms (C# or VB.Net) to Google's Material Design Principles.
Step 3: Design your form as below
Step 4: Add code to handle your form as below
using MaterialSkin; using MaterialSkin.Controls; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace SkinWinforms { public partial class Form1 : MaterialForm//Change Form to MaterialForm { public Form1() { InitializeComponent(); //Init material skin var skinManager = MaterialSkinManager.Instance; skinManager.AddFormToManage(this); skinManager.Theme = MaterialSkinManager.Themes.LIGHT; skinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE); } } }
VIDEO TUTORIALS
Categories
Popular Posts
Visual Studio: Auto increment version
04/01/2024
What is ARM architecture?
04/01/2024