Hey, I set the label parallel to the line, and when the label is small, it works fine, but when the label is long or the line is short, it looks like this.
I want the label to be as long as the link, and if the label is longer than the link, I hide the excess.
I know you can set the word wrap, but I want it hidden
Can you help me? thank you
Give this a try: https://codepen.io/jhardy/pen/mdMBgRZ?editors=1010
It gets the distance between first and last points, and sets the TextBlock’s desiredSize to allow for wrapping.
Cool, thank you very much