I'm starting to like stylesheets in manialinks, and by this I do mean A LOT.
Unfortunately I'm not able to add and remove classes from controls since Control.ControlClasses is read-only.
My wish follows: would it be possible to make the property read-write
Code: Select all
(menuLabel as CMlLabel).ControlClasses.add("active");
// and later you could say:
(menuLabel as CMlLabel).ControlClasses.remove("active");
Reaby