-
Notifications
You must be signed in to change notification settings - Fork 108
DynamicTextBlock
Tim Heuer edited this page Oct 25, 2013
·
6 revisions
This control is deprecated in favor of using the CharacterEllipsis
on the TextBlock
control in Windows 8.1. Visit Callisto Migration Tips for specific information.
DynamicTextBlock (courtesy of Robby Ingebretsen) is a text block display control that will add CharacterEllipsis trimming instead of just the WordEllipsis trimming that is present in TextBlock. You really only need this if you prefer maximum display before trimming as evident in the Example UI shown below.
Declarative:
<callisto:DynamicTextBlock
Text="Bacon ipsum dolor sit amet venison adipisicing ut, porkchop something something"
TextWrapping="NoWrap" />
Code:
DynamicTextBlock dtb = new DynamicTextBlock();
dtb.Text = "Some text here that you want trimmed at character";
No known issues.
Thanks to Robby Ingebretsen for contributing.