Skip to content

DynamicTextBlock

Tim Heuer edited this page Oct 25, 2013 · 6 revisions

DynamicTextBlock (Obsolete)

DEPRECATED

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.

What it is

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.

Example Usage

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";

Example UI

DynamicTextBlock from Callisto

Known Issues

No known issues.

Notes

Thanks to Robby Ingebretsen for contributing.

Clone this wiki locally