As a background, I have a very long identifier that is too long to display in the given TextBlock area. The interesting part of the identifier is the end, that is, the rightmost part.
What I would like to do is to have a TextBlock, and not overflow the text on the right and cut off the right-most part, overflow the left and cut off the very left part.
This is assigned an identifier 123456and a text block with enough space to hold four characters so that the TextBlock displays 3456, rather than 1234, by default.
I could manually crop my id to display, but assuming the variable font size is not perfect. So, is there a way to get WPF to change the direction of the overflow?
source
share