public ProgressiveScroll( IWpfTextViewMargin containerMargin, IWpfTextView textView, IOutliningManager outliningManager, ITagAggregator <ChangeTag> changeTagAggregator, ITagAggregator <IVsVisibleTextMarkerTag> markerTagAggregator, ITagAggregator <IErrorTag> errorTagAggregator, EnvDTE.Debugger debugger, SimpleScrollBar scrollBar, ColorSet colors) { _containerMargin = containerMargin; ProgressiveScrollDict.Add(this); Colors = colors; _textView = textView; _scrollBar = scrollBar; _markerTagAggregator = markerTagAggregator; _errorTagAggregator = errorTagAggregator; RegisterEvents(); InitSettings(); _textRenderer = new TextRenderer(this, _textView, outliningManager); if (Options.RenderTextEnabled) { Visuals.Add(_textRenderer.TextVisual); } MarksVisual = new DrawingVisual(); Visuals.Add(MarksVisual); _changeRenderer = new ChangeRenderer(_textView, changeTagAggregator, scrollBar); _highlightRenderer = new HighlightRenderer(_textView, scrollBar); _markerRenderer = new MarkerRenderer(_textView, markerTagAggregator, errorTagAggregator, debugger, scrollBar); foreach (var visual in Visuals) { AddVisualChild(visual); } }
public ProgressiveScroll( IWpfTextViewMargin containerMargin, IWpfTextView textView, IOutliningManager outliningManager, ITagAggregator<ChangeTag> changeTagAggregator, ITagAggregator<IVsVisibleTextMarkerTag> markerTagAggregator, ITagAggregator<IErrorTag> errorTagAggregator, EnvDTE.Debugger debugger, SimpleScrollBar scrollBar, ColorSet colors) { _containerMargin = containerMargin; ProgressiveScrollDict.Add(this); Colors = colors; _textView = textView; _scrollBar = scrollBar; _markerTagAggregator = markerTagAggregator; _errorTagAggregator = errorTagAggregator; RegisterEvents(); InitSettings(); _textRenderer = new TextRenderer(this, _textView, outliningManager); if (Options.RenderTextEnabled) { Visuals.Add(_textRenderer.TextVisual); } MarksVisual = new DrawingVisual(); Visuals.Add(MarksVisual); _changeRenderer = new ChangeRenderer(_textView, changeTagAggregator, scrollBar); _highlightRenderer = new HighlightRenderer(_textView, scrollBar); _markerRenderer = new MarkerRenderer(_textView, markerTagAggregator, errorTagAggregator, debugger, scrollBar); foreach (var visual in Visuals) { AddVisualChild(visual); } }