相关的PasswordBox在提交数据后消失 [英] Related PasswordBox disappear after submiting data

查看:58
本文介绍了相关的PasswordBox在提交数据后消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用密码盒写密码但是在提交数据时密码占位符文本清除了什么是不清除密码的解决方案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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆