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); }
public void AttachToolTipToControl(FrameworkElement element, Func <DisposableToolTip> createToolTip) => LazyToolTip.AttachTo(element, _threadingContext, createToolTip);