@maciej wrote:
Hi,
I'm looking to move TextBlock.OverflowEllipsis to the middle of the text rather than the end of the text. From "looooo..." to "loo...ong"
I have a data binding on the text block that I am trying to do this on, and attempted to access TextBlock.metrics.arrText[0] per https://forum.nwoods.com/t/check-that-text-is-overflowed/9481 in the data binding function, but I see that the value is the default value for the text block generator rather than the text that will fill the block. It is only after render that the TextBlock.metrics.arrText[0] value is updated to include the actual overflowed name of the text block.
Is there a recommended way to create my own overflow function or expand the builtin TextBlock.OverflowEllipsis to move the ellipsis to the middle of the shown text area?
Posts: 2
Participants: 2