示例#1
0
            public override bool TryCreateColumnContent(string columnName, out FrameworkElement content)
            {
                if (base.TryCreateColumnContent(columnName, out content))
                {
                    LazyToolTip.AttachTo(content, CreateDisposableToolTip);

                    return(true);
                }

                return(false);
            }
            public override bool TryCreateColumnContent(string columnName, out FrameworkElement content)
            {
                if (columnName == StandardTableColumnDefinitions2.LineText)
                {
                    var inlines   = GetHighlightedInlines(Presenter, _taggedLineParts, _isDefinitionLocation);
                    var textBlock = inlines.ToTextBlock(Presenter._typeMap);

                    LazyToolTip.AttachTo(textBlock, CreateDisposableToolTip);

                    content = textBlock;
                    return(true);
                }

                content = null;
                return(false);
            }
示例#3
0
 public void AttachToolTipToControl(FrameworkElement element, Func <DisposableToolTip> createToolTip)
 => LazyToolTip.AttachTo(element, _threadingContext, createToolTip);