相关的PasswordBox在提交数据后消失 [英] Related PasswordBox disappear after submiting data
问题描述
我使用密码盒写密码但是在提交数据时密码占位符文本清除了什么是不清除密码的解决方案placeholderText你能给我一个密码箱样本吗?
你好 Binal Prajapati,
欢迎来到
开发通用Windows应用论坛 !请使用 标记 当
发布到这个论坛时,谢谢!
你能给我一些代码来描述你的这个问题吗? 如果是占位符文本清除,您可以再次在提交数据事件处理程序中重置它。代码是这样的,
private void Submit(object sender,RoutedEventArgs e)
{
//要做:提交密码
//重置占位符文本
passwordwordBox.PlaceholderText ="请输入您的密码";
}有关详细信息,请参阅
PasswordBox contro指南 l。
祝你好运,
Breeze
I have used Password Box for writing password but when submitting data password placeholder text clears so what is solution of not clearing passwordBox placeholderText can you give me sample of passwordbox?
Hello Binal Prajapati,
Welcome to the Developing Universal Windows apps forum! Please utilize tagging when posting to this forum, thanks!
Could you give me some code to describe your this issue? If the placeholder text clears, you can reset it in your submit data event handler again. The code is something like this,
private void Submit(object sender, RoutedEventArgs e) { //To do :submit your password //reset the placeholder text passwordwordBox.PlaceholderText = "please enter your password"; }For more info, see Guidelines for PasswordBox control.
Best regards,
Breeze
这篇关于相关的PasswordBox在提交数据后消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!