I have two small problems/questions about app development in Windows Phone 7.
1: I am trying to use a generic password field in Windows Phone 7. When I created a generic regular text field, I could "pole" it s value with the variable username.Text, ("username" being the name of the text input field).
MessageBox.Show("Success! Username: "+username.Text+", Password: "+password.Text+".");
然而,当我试图对一个密码箱做同样的事情时,我告诉我:
Error 1 System.Cord.Controls.PasswordBox没有包含文本定义,也没有接受第一种类型论点的延伸方法案文。 系统.Windows.Controls.PasswordBox(如果你没有指示或集会参考?) C.UsersJoshaworkspaceAppAppMainPage.xaml.cs 36 93
我试图在互联网上搜索数小时,但没有取得任何相关结果。
Question number 2: Does anyone know of a way to put "hint" text in said password box? I would like it to say in grayed-out letters "Password" when it is blank.
感谢大家。