Esempio n. 1
0
        bool SetHighlightSpan(SnapshotSpan? span)
        {
            var classifier = UnderlineClassifierProvider.GetClassifierForView(_view);
            if (classifier != null)
            {
                if (span.HasValue)
                    Mouse.OverrideCursor = Cursors.Hand;
                else
                    Mouse.OverrideCursor = null;

                classifier.SetUnderlineSpan(span);
                return true;
            }

            return false;
        }
Esempio n. 2
0
        private bool SetHighlightSpan(SnapshotSpan?span)
        {
            var classifier = UnderlineClassifierProvider.GetClassifierForView(_view);

            if (classifier != null)
            {
                if (span.HasValue)
                {
                    Mouse.OverrideCursor = Cursors.Hand;
                }
                else
                {
                    Mouse.OverrideCursor = null;
                }

                classifier.SetUnderlineSpan(span);
                return(true);
            }

            return(false);
        }