I am an experienced developer who is new to WPF. I appreciate all the flexibility of WPF components, but this flexibility is causing me a little trouble.

Specifically, I want to create a dialog box. When I do this in C++/MFC or C#/Win Forms, my text boxes and the text box fonts are automatically the right size for system dialogs.

But in WPF, I have to hard code both the text box height *and* the font size. This apparently means:

1. I have to guess what font size will best match the user's system font settings for dialog boxes, and my fonts will not adjust to each users' system settings.
2. Even worse, I have to also guess at the best text box size for the current font. This has always been automatic on other platforms.

I'm just wondering how seasoned WPF developers are handling text box and font sizes within a dialog box.

**EDIT:**

In other words, I would like my text boxes to use the font returned by the Windows API calls `GetStockObject(SYSTEM_FONT)`. Is this directly supported by WPF?