[nemerle] r8429 committed - WpfHint: Added support of wrapping text.

0 views
Skip to first unread message

codesite...@google.com

unread,
Nov 5, 2009, 3:53:38 PM11/5/09
to nemer...@googlegroups.com
Revision: 8429
Author: v...@rsdn.ru
Date: Thu Nov 5 12:52:39 2009
Log: WpfHint: Added support of wrapping text.
http://code.google.com/p/nemerle/source/detail?r=8429

Modified:

/nemerle/trunk/VsIntegration/Nemerle.VisualStudio/GUI/WpfHint/UIBuilding/HintBuilder.cs

=======================================
---
/nemerle/trunk/VsIntegration/Nemerle.VisualStudio/GUI/WpfHint/UIBuilding/HintBuilder.cs
Mon Nov 2 09:09:59 2009
+++
/nemerle/trunk/VsIntegration/Nemerle.VisualStudio/GUI/WpfHint/UIBuilding/HintBuilder.cs
Thu Nov 5 12:52:39 2009
@@ -13,7 +13,9 @@
{
public static FrameworkElement Build(RootToken rootToken, Hint hint)
{
- return new HintDecorator { Child = new TextBlock().Fill(rootToken,
hint) };
+ var textBlock = new TextBlock().Fill(rootToken, hint);
+ textBlock.TextWrapping = TextWrapping.WrapWithOverflow;
+ return new HintDecorator { Child = textBlock };
}

private static Span Fill(this Span span, ElementToken token, Hint hint)

Reply all
Reply to author
Forward
0 new messages