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 541 times
1
Dave Clemmer
- 3,777
- 12
- 48
- 72
1gn1ter
- 1,404
- 2
- 21
- 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,495
- 6
- 72
- 99