Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将默认起始文本内容位置(如上部 TextBox)更改为下部 TextBox。
您应该能够将左侧填充设置为 0,并且 TextBox 将如下所述:
<TextBox Padding="0,5,5,5" ... />
我不确定,但默认填充可能是 3,所以:
<TextBox Padding="0,3,3,3" ... />
MSDN 有一篇关于Alignment, Margins, and Padding Overview的好文章。