In Silverlight, how to I adjust the width of a button which contains two TextBlocks?
Posted
by MStodd
on Stack Overflow
See other posts from Stack Overflow
or by MStodd
Published on 2010-04-15T03:24:57Z
Indexed on
2010/04/15
3:33 UTC
Read the original article
Hit count: 271
I have a button, the content template of which contains two TextBlocks. How can I program the button to adjust to the amount of text in the TextBlocks?
I only know what text is going into the buttons at run time, not design time.
I was trying to go down the road of putting the TextBlocks in a Viewbox, but a ViewBox can only have one child element.
Thanks, Mark
© Stack Overflow or respective owner