TextTrimming in TextBlockVisual3D does not work
#1
In the attached screen shot, the TextTrimming property does not seem to work.  The BorderSize is set in order to allow TextTriming to work as indicated in your API docs for TextBlockVisual3D.

By the way, your documentation for TextBlockVisual3D, property TextTrimming seems to have a minor error.  Your documentation states:

"TextTrimming
Gets or sets the TextTrimming of the text. To show text trimmed in multiple lines, you need to set the BorderSize property (it should not be set to Size.Empty)."


This gives the impression that TextTrimming is used only in multi-line text.  This should be re-written as:

"Gets or sets the TextTrimming of the text. This property will have no effect if BorderSize is not set because the default behavior without BorderSize set is to adjust the size of the text to fit the allotted space.   Also, if multiple lines of text are trimmed where each line is separated by a line feed, then an ellipsis will appear on each line that exceeds the allocated space.


Attached Files Thumbnail(s)
   
#2
Thank you for the improved description of TextTrimming property.
I have found the cause of the problem and fixed it. It will be available with the next version that should be released at the beginning of May.

A workaround for this to work correctly with the current version is to create a new class that is derived from TextBlockVisual3D. Then you will be able to set the Width and Height of the protected textBorder property - set them to the value of the BorderSize property.
Andrej Benedik
#3
Thanks.  I will wait for the upgrade.  

I would like to re-write my suggested description of the TextTrimming property as follows:

"Gets or sets the TextTrimming of the text. This property will have no effect if BorderSize is not set because the default behavior without BorderSize set is to adjust the size of the text to fit the allotted space.   Note that if this property is set to TextTrimming.CharacterEllipsis and the text consists of multiple lines of text where each line is separated by a line feed, then an ellipsis will appear on each line that exceeds the allocated space.
  


Forum Jump:


Users browsing this thread:
1 Guest(s)