IgnaceMaes / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
2.84k stars 829 forks source link

[Visual Studio 2017] How to fix MaterialSkin [C# FORM] #174

Closed ArtsJrn closed 6 years ago

ArtsJrn commented 6 years ago

This is a way to fix your MaterialSkin in Visual Studio 2017

  1. If you chose C# (Form1.cs) then double click on the form background.
  2. Go and add using MaterialSkin; to the first line & using System; to the second line if you haven't already.
  3. Go and change public partial class Form1 : Formto public partial class Form1 : MaterialSkin.Controls.MaterialForm
  4. Go into public form1, and add these: var materialSkinManager = MaterialSkin.MaterialSkinManager.Instance; materialSkinManager.AddFormToManage(this); materialSkinManager.Theme = MaterialSkin.MaterialSkinManager.Themes.DARK; materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE); You may edit this later.

That's it! Your done! If you are still having any issues, please tell me and I will try to find a solution to your problem.

weespin commented 6 years ago

@IncVERM facepalm