private static void CreateRenderers() { ScrollBarRenderer scrollBarRenderer; ListViewRenderer listViewRenderer; HeaderRenderer headerRenderer; TreeViewRenderer treeViewRenderer; _renderers = new ThemeRenderer[] { scrollBarRenderer = new ScrollBarRenderer(), listViewRenderer = new ListViewRenderer(), headerRenderer = new HeaderRenderer(), treeViewRenderer = new TreeViewRenderer(), new EditRenderer(), new SpinRenderer(), new ComboBoxRenderer(), new ButtonRenderer(), new TooltipRenderer(), }; var editorHandle = new ICSharpCode.TextEditor.TextEditorControl().Handle; var listViewHandle = new NativeListView().Handle; var treeViewHandle = new NativeTreeView().Handle; scrollBarRenderer.AddThemeData(editorHandle); scrollBarRenderer.AddThemeData(listViewHandle); headerRenderer.AddThemeData(listViewHandle); listViewRenderer.AddThemeData(listViewHandle); treeViewRenderer.AddThemeData(treeViewHandle); }
private static void CreateRenderers() { _renderers = new ThemeRenderer[] { _scrollBarRenderer = new ScrollBarRenderer(), _listViewRenderer = new ListViewRenderer(), _headerRenderer = new HeaderRenderer(), _treeViewRenderer = new TreeViewRenderer(), _tabRenderer = new TabRenderer(), new EditRenderer(), new SpinRenderer(), new ComboBoxRenderer(), new ButtonRenderer(), new TooltipRenderer(), }; LoadThemeData(); }