In phone7, there are actually two main input controls: textbox and password. These two controls, especially textbox controls, have many new features.
I.Passwordbox: Password box control, which is used to input custom mask characters.
<PasswordBox x:Name="passwordBox1" Height="72" HorizontalAlignment="Left" Margin="6,40,0,0" VerticalAlignment="Top" Width="460" />
Passwordchar: Set the display character of the password.
Passwordbox1.password: get the password value.
ReadOnlyTB.Text = passwordBox1.Password;
II.Textbox: Input box control.
<TextBox InputScope= "TelephoneNumber" Height="72" HorizontalAlignment="Left" Margin="6,135,0,0" Name="textBox1" Text="TextBox" VerticalAlignment="Top" Width="460" />
Text: set or obtain the text to be entered.
Isreadonly: Set whether input is allowed.
Selectionbackground: sets the background color of the selected text in the input box.
Selectionforground: Set the font color of the selected text in the input box.
Selectedtext: Get the selected text in the input box. It can be used in the selectionchanged event.
Inputscope: The keyboard can have different key-plane effects for easy input.
You can also set it as follows:
<TextBox.InputScope>
<InputScope>
<InputScopeName NameValue="Text"></InputScopeName>
</InputScope>
</TextBox.InputScope>
For available values for inputscope, see msdn: http://msdn.microsoft.com/en-us/library/system.windows.input.inputscopenamevalue (V = vs.95). aspx
Common Value: Text: Lenovo input added to the soft keyboard
Telephonenumber: the keys and planes are displayed as numbers.
URL: the key area shows. com.