Exemplo n.º 1
0
 private void EnsureRepository()
 {
     if (ThemeResolutionService.GetThemeRepository(ThemeResolutionService.ControlDefaultThemeName, false, false) == null)
     {
         string themeLocation = "Telerik.WinControls.UI.ControlDefault." + RepositoryName;
         ThemeResolutionService.RegisterThemeFromStorage(ThemeStorageType.Resource, themeLocation);
     }
 }
Exemplo n.º 2
0
        private void ProcessStyle()
        {
            if (this.OwnerStyleManager != null && this.OwnerStyleManager.Owner != null)
            {
                XmlStyleRepository repository = ThemeResolutionService.GetThemeRepository(this.OwnerStyleManager.Owner.ThemeName);
                if (repository != null)
                {
                    this.styleSheet.ProcessGroupsInheritance(repository);
                }
            }

            this.stylesheetTree = new StylesheetTree(this);
            this.stylesheetTree.CreateNodesFromStyle(this.styleSheet);

            //Part of brute force algorithm test implemetation
            this.stylesheetTree.AttachElement(this.styleRootElement);
        }