提交 bde73626 编写于 作者: C CyrusNajmabadi

Don't wrap result items in the new FAR window.

上级 71357b38
......@@ -71,12 +71,17 @@ public static TextBlock ToTextBlock(this TaggedText part, ClassificationTypeMap
public static TextBlock ToTextBlock(
this IEnumerable<Inline> inlines,
ClassificationTypeMap typeMap,
string classificationFormatMap = null)
string classificationFormatMap = null,
bool wrap = true)
{
classificationFormatMap = classificationFormatMap ?? "tooltip";
var formatMap = typeMap.ClassificationFormatMapService.GetClassificationFormatMap(classificationFormatMap);
var textBlock = new TextBlock { TextWrapping = TextWrapping.Wrap };
var textBlock = new TextBlock
{
TextWrapping = wrap ? TextWrapping.Wrap : TextWrapping.NoWrap,
TextTrimming = wrap ? TextTrimming.None : TextTrimming.CharacterEllipsis
};
textBlock.SetDefaultTextProperties(formatMap);
textBlock.Inlines.AddRange(inlines);
......
......@@ -88,7 +88,7 @@ public override bool TryCreateColumnContent(string columnName, out FrameworkElem
if (columnName == StandardTableColumnDefinitions2.LineText)
{
var inlines = GetHighlightedInlines(Presenter, _taggedLineParts, _isDefinitionLocation);
var textBlock = inlines.ToTextBlock(Presenter._typeMap);
var textBlock = inlines.ToTextBlock(Presenter._typeMap, wrap: false);
LazyToolTip.AttachTo(textBlock, CreateDisposableToolTip);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册