Skinning Custom Control

I was trying to add a skin entry for a custom control that I made, but I kept getting the following error

"The control type 'ASP.controls_customerpicker_ascx' cannot be themed."

Surely I can skin my own control! After research, trial, and errorΒ I stumbled upon the solution that worked.

Adding the "[Themeable(true)]" attribute to my custom control classΒ fixed my issue. Yippee!

If you enjoyed this post, please consider sharing it with others via the following Twitter or Reddit buttons. Also, feel free to checkout my egghead.io profile page for addition free and subscription lessons, collections, and courses. As always, you can reach out to me on Twitter at @elijahmanor. Thanks and have a blessed day!

Reddit