public OutlineDataEventArgs(OutlineData outlineData,
                             string searchString,
                             GdOutlineToolWindowSearchOptions searchOptions)
 {
     OutlineData   = outlineData;
     SearchString  = searchString;
     SearchOptions = searchOptions;
 }
        internal void ShowOutline([CanBeNull] OutlineData outlineData, [CanBeNull] IPatternMatcher patternMatcher)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            AddOutlineElement(null, outlineData?.OutlineElement, patternMatcher);

            if (TreeView.Items.Count == 0)
            {
                TreeView.Visibility  = Visibility.Collapsed;
                Watermark.Visibility = Visibility.Visible;
            }
            else
            {
                TreeView.Visibility  = Visibility.Visible;
                Watermark.Visibility = Visibility.Collapsed;
            }
        }