Use of the passwordbox control in Silverlight

Source: Internet
Author: User
Tags silverlight

<! --
The passwordbox control is used to receive input passwords. When you enter text in the passwordbox control, only the password string that represents the text is displayed.

Important attributes of passwordbox:
Password -- the actual string of the password entered in the control.
Passwordchar -- used to set the password mask characters displayed in the password edit box.
-->
<Grid X: Name = "layoutroot" background = "white">
<Stackpanel X: Name = "stackpanel" background = "white">
<Textblock margin = "," text = "text display and editing control -- passwordbox" fontsize = "18" fontweight = "bold" foreground = "# ffbe4d4d"/>
<Textblock margin = "10, 10, 0, 0" text = "Password text box, which is a character *"/>
<Passwordbox name = "passwordbox1"
Password = "Hello siliverlight" passwordchar = "*"
Horizontalalignment = "Left" width = "300" margin = ","/>
<Textblock name = "tbpasswordbox1value" horizontalalignment = "Left" width = "300" margin = ","/>
<Textblock margin = "," text = "Custom Password box:"/>
<Passwordbox name = "passwordbox2" Password = "Hello silvelight" horizontalalignment = "Left" width = "300" margin = ",">
<Passwordbox. selectionbackground>
<Lineargradientbrush startpoint = "0, 0" endpoint = "0, 1">
<Gradientstop color = "gray" offset = "0.0"/>
<Gradientstop color = "black" offset = "1.0"/>
</Lineargradientbrush>
</Passwordbox. selectionbackground>
</Passwordbox>
</Stackpanel>
</GRID>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.