In Silverlight, how to I adjust the width of a button which contains two TextBlocks?
- by MStodd
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