Пример #1
0
        /// <devdoc>
        /// <para>Apply theme on the control.</para>
        /// </devdoc>
        private void ApplySkin(Page page) {
            if (page == null) {
                throw new ArgumentNullException("page");
            }

            if (flags[themeApplied]) {
                return;
            }

            if (ThemeableAttribute.IsTypeThemeable(this.GetType())) {
                page.ApplyControlSkin(this);
                flags.Set(themeApplied);
            }
        }