I have a TextBlock with the following setting:
TextBlock
TextWrapping=\"Wrap\"
Can I determine the maximum number of lines?
for exam
If you have Height, TextWrapping, and TextTrimming all set, it will behave exactly like you want:
Height
TextWrapping
TextTrimming
The above code will wrap up to two lines, then use CharacterEllipsis beyond that point.
CharacterEllipsis