I have a Label object in my Silverlight 5.0 application, and I will need the label to autosize at runtime, either by getting larger or smaller.
My application presents a new number to a user with a set number of digits every few seconds, and at a certain interval, based on multiple factors as the application runs, I either add a digit or subtract a digit from the number length. I have done this easily in Windows forms, but I need to convert it to Silverlight, and the label control does not have an autosize property.
I have seen the number get as small as 3 digits, and as long as 10 digits.
What would be the best way to go about adding an autosize feature to the label in silverlight?
Answer: 1
Try using an embedded TextBlock instead of a label.
by : Beanerhttp://stackoverflow.com/users/17776
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog