How can i remove inner padding on TextBox wpf?

给你一囗甜甜゛ 提交于 2019-12-13 00:24:19

问题


I created a textbox.

And there is empty place under text.

In picture, Red Line.

How can I remove that inner padding?


回答1:


You can set negative values for padding.

e.g.

<TextBox  Padding="-2" Width="100" Height="18"></TextBox>

It will look like



来源:https://stackoverflow.com/questions/43908447/how-can-i-remove-inner-padding-on-textbox-wpf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!