I need to calculate a TextBlock height in code in order to build a grid properly. I've seen a few examples, but Graphics.MeasureString namespace is different. How to do it in Windows Store App?
Asked
Active
Viewed 543 times
1
Dave Clemmer
- 3,741
- 12
- 49
- 72
1gn1ter
- 1,414
- 2
- 22
- 47
1 Answers
2
Check the answer to this question. Basically you need to create a TextBlock and invoke the layout procedures to force a layout pass to give you ActualWidth/Height of the TextBlock.
Community
- 1
- 1
Filip Skakun
- 31,624
- 6
- 74
- 100