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 per Check that text is overflowed 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 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?
Try resizing the nodes. This just splits by giving the right hand textblock precedence, since the other one “Stretches” to the available space, which is initially as much as it wants, until a size is specified on the panel (in this case Node).