Textbox text aligment RRS feed

  • Question

  • Hi, everyone. I am developing Windows Store crossword application. And I have one issue with Textbox control. I need square textbox for the letter input. But I can not center text inside textbox vertically and horizontally. I know textbox doesn't support vertical content alignment. How I can achieve the goal? Maybe anyone has ideas.
    Saturday, November 9, 2013 5:36 PM


  • Hi,

    VerticalContentAlignment don't affect all the controls, the properties only affect the control whose template uses these two properties as parameter.

    Here is the reference:


    You can set the padding property or you can use RichEditBox instead of TextBox.

    Best Wishes!

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by Anne Jing Tuesday, November 19, 2013 2:29 AM
    Monday, November 11, 2013 5:14 AM