private void EnsureRepository() { if (ThemeResolutionService.GetThemeRepository(ThemeResolutionService.ControlDefaultThemeName, false, false) == null) { string themeLocation = "Telerik.WinControls.UI.ControlDefault." + RepositoryName; ThemeResolutionService.RegisterThemeFromStorage(ThemeStorageType.Resource, themeLocation); } }
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); }