WPF DrawText Bounding Rectangle

If you need to get the exact measure of a Text drawn with WPF DrawText (i.e. for centering without the font's overhead), you can do it like this:

Stefan-Taube.de