Example #1
0
        protected StyleMap MapStyleToElement(RadElement element)
        {
            //reset any style
            element.Style = null;

            StyleBuilder builder = ThemeResolutionService.GetStyleSheetBuilder(element);

            if (builder == null)
            {
                return(null);
            }

            StyleMap styleMap = new StyleMap(this, builder, element);

            this.styleElementMap[element.GetHashCode()] = styleMap;

            return(styleMap);
        }