示例#1
0
        private void ApplyStyles(String screenName, IStyledObject scr, StyleSheet styleSheet)
        {
            String cssFile = null;

            if (scr is ICustomStyleSheet)
            {
                if (!String.IsNullOrEmpty(((ICustomStyleSheet)scr).StyleSheet))
                {
                    cssFile = ((ICustomStyleSheet)scr).StyleSheet;
                }
            }

            InitStyles(ref styleSheet, screenName, cssFile);

            styleSheet.Assign(scr);

            scr.Apply(styleSheet, new Bound(), new Bound());
        }