<! --
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>