I have 2 TextBoxes in my wpf app, one for user name and other for password, both have FontSize=20, but the text appears like this:
TextBox
FontSize=20
Adjust the Padding properties of these controls, e.g. Padding="0":
Padding
Padding="0"
Or, don't set the Height properties, and instead let the controls size themselves automatically based on the height of their content:
Height