Exemplo n.º 1
0
        private static void CreateRenderers()
        {
            ScrollBarRenderer scrollBarRenderer;
            ListViewRenderer  listViewRenderer;
            HeaderRenderer    headerRenderer;
            TreeViewRenderer  treeViewRenderer;
            TabRenderer       tabRenderer;

            _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(),
            };

            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);
            tabRenderer.AddThemeData(new TabControl().Handle);
        }
Exemplo n.º 2
0
        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();
        }