Hello!
I want to change the MaxLength from 150 to 300 when you clicked on the Rectangle, but the change doesn’t happen. It workes if I want to change the Margin for example. Why’s that?
I’m guessing that Paragraph extends from Text. Please include such important details.
Changing Text.MaxLength in UX during run-time isn’t desired, because rendering (and re-rendering) text is expensive.
You have two options here:
Change the actual {text} in JavaScript from a callback function to show less/more characters. I imagine using .map on an Observable boolean for this would work out nicely.
Set ClipToBounds="true" on a parent, and Change the height of the clipping element to reveal the hidden content.