1

I need to align password to center in PasswordBox like TextAlignment property do for TextBox, but unfortunately there is no TextAlignment property defined with PasswordBox element, In windows phone 8 i achieved this by modifying PasswordBox Template as this post -PasswordBox textalignment in WP7, But when searched for Windows Store App I found many post to regarding silverlight and wpf like This but not working for Windows store apps.

Thanks :)

4

1 回答 1

0

包括命名空间:

<!-- XML Namespace mapping. -->
xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"

将非默认控件添加HorizontalContentAlignment到样式模板。

<control HorizontalContentAlignment="horizontalAlignmentValue"/>

更多信息在这里这里

于 2013-11-15T16:37:30.297 回答