public XamlColorizer(ITextEditor editor, TextView textView) { this.Editor = editor; this.TextView = textView; this.weakLineTracker = WeakLineTracker.Register(this.Editor.Document.GetService(typeof(TextDocument)) as TextDocument, this); ParserService.LoadSolutionProjectsThreadEnded += ParserServiceLoadSolutionProjectsThreadEnded; colorizers.Add(this); }