English 中文(简体)
视窗电话7的密码领域?
原标题:Password field in Windows Phone 7?

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.

感谢大家。

最佳回答

问题1:<条码>pwdName.Pasword给出密码的价值(pwdName是x:控制名称)

For question 2: watermarking for password box is possible by creating your custom control or go through this article

问题回答

暂无回答




相关问题
System.Json namespace missing from Windows Phone 7

During a Mix10 presentation, the presenter (Charlie Kindel) said that when writing Silverlight based apps for WP7 you get all of Silverlight 3.0 with some of Silverlight 4.0 mixed in. Why then is ...

Will Windows Phone 7 Support Multitasking third party apps

Obviously it s early days, I do not know whether this is information that is in the public domain or not yet, but... I have trawled through some of this site - http://www.windowsphone7series.com/ but ...

Windows Series Phone 7 "Cloud"

I have been reading up on "Cloud computing" on here and still not getting it. Basically I want to develop for the WP7 http://msdn.microsoft.com/en-us/library/ff402531%28v=VS.92%29.aspx#...

Windows Phone 7 Tab Pages (page cycle)

I know.. I know, it s only a few hours old. But how the hell do you get the little page tabbing/cycle (forgot what the official name is) on the top of the page under the app title. MIX Keynotes made ...

Recording audio from the microphone in Windows Phone 7 Series

I m wondering if anyone has any code samples or links to documentation that demonstrate how to capture audio from the device s microphone on the new Windows Phone Series 7. I ve recently downloaded ...

Resources for Windows Phone 7 development [closed]

Windows Phone 7 has been unveiled and MS have announced all details of the development chain at the Mix10 conference. So this could be a good starting point/collection of online resources as they ...

热门标签