I have a WPF ListView
(GridView
) and the cell template contains a TextBlock
. If I add: TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"
on the TextBlock
, an ellipsis will appear at the end of my string when the column gets smaller than the length of the string. What I need is to have the ellipsis at the beginning of the string.
I.e. if I have the string Hello World!
, I would like ...lo World!
, instead of Hello W...
.
Any ideas?
You could try to use a ValueConverter (cf. IValueConverter interface) to change the strings that should be displayed in the list box yourself. That is, in the implementation of the Convert method, you would test if the strings are longer than the available space, and then change them to ... plus the right side of the string.