开发者

How do I move the text in a silverlight textbox

开发者 https://www.devze.com 2023-03-22 21:39 出处:网络
I make a silverlight TextBox开发者_StackOverflow.The Text is vertically centered in the box so that I am required to make the textbox a certain size in order to see the text.

I make a silverlight TextBox开发者_StackOverflow. The Text is vertically centered in the box so that I am required to make the textbox a certain size in order to see the text.

Can I make the text appear at the top of the box so that I am not required to have such large textboxes?


If you want to put the text at the top of the textbox then instead of VerticalAlignment="Center" use VerticalAlignment="Top"

If you feel that the text is not filling the textbox then try using a negative number for the padding property in your xaml e.g. Padding="-3"

0

精彩评论

暂无评论...
验证码 换一张
取 消