ARTICLE AD BOX
I want to make the label font size to be a little big bigger. Based on my research, all I have to do is use ROBOTO_REGULAR_12, but I get this error:
'MaterialSkinManager' does not contain a definition for 'ROBOTO_REGULAR_11' and no accessible extension method 'ROBOTO_REGULAR_11' accepting a first argument of type 'MaterialSkinManager' could be found (are you missing a using directive or an assembly reference?)
This is my code:
using MaterialSkin; using MaterialSkin.Controls; materialSkinManager.ROBOTO_REGULAR_11 = new Font("Arial", 12f, FontStyle.Regular); materialSkinManager.ROBOTO_MEDIUM_12 = new Font("Arial", 14f, FontStyle.Bold); materialSkinManager.ROBOTO_MEDIUM_11 = new Font("Arial", 12f, FontStyle.Regular); materialSkinManager.ROBOTO_MEDIUM_10 = new Font("Arial", 10f, FontStyle.Bold);I assume you use WinForms-MaterialSkin or similar.
According to the MaterialSkinManager source I see here:
ROBOTO_MEDIUM_12, ROBOTO_REGULAR_11 etc. are not static members of MaterialSkinManager.
Therefore you need an object/instance of type MaterialSkinManager to access them.
It looks like MaterialSkinManager is a singleton and MaterialSkinManager.instance is the object/instance you should use:
//-----------------vvvvvvvvvv------------------- MaterialSkinManager.instance.ROBOTO_REGULAR_11 = ...(same goes to ROBOTO_MEDIUM_12 etc.)
Note: in other versions the singleton might be spelled with a capital I (Instance).
37.5k19 gold badges83 silver badges119 bronze badges
3 Comments
Explore related questions
See similar questions with these tags.

