Hi,
Is there any way of calculating the size of label that will fit a given string? I have to add a varying amount to the Canvas.MeasureStringwidth and .....height to make the label large enough. That amount seems to vary with the string length and text size. Is there a way of finding out what that amount should be? I don't want to use e.g. label.width = -2 as I can't then find out the actual width.
Thanks
Is there any way of calculating the size of label that will fit a given string? I have to add a varying amount to the Canvas.MeasureStringwidth and .....height to make the label large enough. That amount seems to vary with the string length and text size. Is there a way of finding out what that amount should be? I don't want to use e.g. label.width = -2 as I can't then find out the actual width.
Thanks