public MarkerToolTipHandler(MarkerToolTipHandlerProvider provider, ThreadFixPlugin threadFixPlugin, IWpfTextViewHost wpfTextViewHost, IWpfTextViewMargin margin) { _threadFixPlugin = threadFixPlugin; _textViewHost = wpfTextViewHost; _margin = margin; _glyphTagAggregator = provider.ViewTagAggregatorFactoryService.CreateTagAggregator<MarkerTag>(wpfTextViewHost.TextView); _popup = new Popup { IsOpen = false, Visibility = Visibility.Hidden }; _textViewHost.Closed += (sender, e) => _glyphTagAggregator.Dispose(); }
public MarkerToolTipHandler(MarkerToolTipHandlerProvider provider, ThreadFixPlugin threadFixPlugin, IWpfTextViewHost wpfTextViewHost, IWpfTextViewMargin margin) { _threadFixPlugin = threadFixPlugin; _textViewHost = wpfTextViewHost; _margin = margin; _glyphTagAggregator = provider.ViewTagAggregatorFactoryService.CreateTagAggregator <MarkerTag>(wpfTextViewHost.TextView); _popup = new Popup { IsOpen = false, Visibility = Visibility.Hidden }; _textViewHost.Closed += (sender, e) => _glyphTagAggregator.Dispose(); }