If you apply a class on the root of a custom control, the style is ignored. The subelements in the custom control are styled correctly.