Is there a measurestring equivalent in Silverlight xaml?

Posted by Roy on Stack Overflow See other posts from Stack Overflow or by Roy
Published on 2010-03-30T05:40:01Z Indexed on 2010/03/30 5:43 UTC
Read the original article Hit count: 647

Filed under:
|
|
|

What I am trying to accomplish: Create a dynamic bubble that expands on height and width depending on the text in the bubble.

What I researched so far: In an so article they described the measurestring to figure out the exact width or height so dynamic changes in the .cs to the width and height can be accomplished.

Is there something like this in Silverlight? Is my only option to utilize the myTxt.Text.length and then change the myGrid.height and myGrid.width to leave wasted space to accommodate all cases?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about xaml