Пример #1
0
        public ControlStyleBuilderInfo(RadControl previewControl, RadElement theamableRoot, string controlClassName, BuilderRegistrationType builderRegistrationType)
        {
            this.previewControl = previewControl;
            this.theamableRoot  = theamableRoot;

            registration = new XmlStyleBuilderRegistration();
            RadStylesheetRelation relation = new RadStylesheetRelation();

            registration.StylesheetRelations.Add(relation);

            relation.RegistrationType = builderRegistrationType;
            relation.ElementType      = theamableRoot.GetThemeEffectiveType().FullName;
            relation.ControlType      = controlClassName;
        }
Пример #2
0
        public ControlStyleBuilderInfo(RadControl previewControl, RadElement theamableRoot, string mainElementClassName)
        {
            this.previewControl       = previewControl;
            this.theamableRoot        = theamableRoot;
            this.mainElementClassName = mainElementClassName;

            registration = new XmlStyleBuilderRegistration();

            RadStylesheetRelation relation = new RadStylesheetRelation();

            registration.StylesheetRelations.Add(relation);

            relation.RegistrationType = BuilderRegistrationType.ElementTypeControlType;
            relation.ElementType      = theamableRoot.GetThemeEffectiveType().FullName;

            relation.ControlType = theamableRoot.ElementTree.ComponentTreeHandler.ThemeClassName;
        }