Vertical Align in WPF TextBox

前端 未结 4 1348
灰色年华
灰色年华 2021-02-06 20:55

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:

4条回答
  •  离开以前
    2021-02-06 21:52

    You have given explicit Height set to 40 to these TextBox controls.

    Please remove it and let them take enough space to show their content.

    
    
    

提交回复
热议问题