/// <summary>
        /// If elements are declared, but have no graphics, we won't try to render them.
        /// </summary>
        void RemoveUnrenderableElements(JwSkinPackage pkg)
        {
            for (var i = 0; i < elements.Count; i++) {
                if (elements[i].Type != ControlBarElement.ElementType.Button) continue;
                if (pkg.HasNamedElement("controlbar", elements[i].ElementName())) continue;

                elements.RemoveAt(i);
                i--;
            }
        }