In this article we will discuss about the various on-screen keyboard options available in Windos Phone 7. The data input becomes real easy when right on-screen keyboard is used. There are various on-screen options available in Windows Phone 7.
Let's write small code in MainPage.xaml file to demonstrate various on-screen keyboard options.
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <TextBlock Text="Default" Height="30" HorizontalAlignment="Left" Margin="10,15,0,0" Name="textDefault" VerticalAlignment="Top" FontSize="18" /> <TextBox InputScope="Default" Height="60" HorizontalAlignment="Left" Margin="100,0,0,0" Name="txtDefault" Text="" VerticalAlignment="Top" Width="350" />
<TextBlock Text="Chat" Height="30" HorizontalAlignment="Left" Margin="10,70,0,0" Name="textChat" VerticalAlignment="Top" FontSize="18" /> <TextBox InputScope="Chat" Height="60" HorizontalAlignment="Left" Margin="100,55,0,0" Name="txtChat" Text="" VerticalAlignment="Top" Width="350" />
<TextBlock Text="Email" Height="30" HorizontalAlignment="Left" Margin="10,125,0,0" Name="textEmail" VerticalAlignment="Top" FontSize="18" /> <TextBox InputScope="EmailNameOrAddress" Height="60" HorizontalAlignment="Left" Margin="100,110,0,0" Name="txtEmail" Text="" VerticalAlignment="Top" Width="350" />
<TextBlock Text="Url" Height="30" HorizontalAlignment="Left" Margin="10,180,0,0" Name="textUrl" VerticalAlignment="Top" FontSize="18" /> <TextBox InputScope="Url" Height="60" HorizontalAlignment="Left" Margin="100,165,0,0" Name="txtUrl" Text="" VerticalAlignment="Top" Width="350" />
<TextBlock Text="NameOr" Height="30" HorizontalAlignment="Left" Margin="10,235,0,0" Name="textName" VerticalAlignment="Top" FontSize="18" /> <TextBlock Text="Phone" Height="30" HorizontalAlignment="Left" Margin="10,255,0,0" Name="textPhoneNumber" VerticalAlignment="Top" FontSize="18" /> <TextBox InputScope="NameOrPhoneNumber" Height="60" HorizontalAlignment="Left" Margin="100,220,0,0" Name="txtNameOrPhoneNumber" Text="" VerticalAlignment="Top" Width="350" />
<TextBlock Text="Address" Height="30" HorizontalAlignment="Left" Margin="10,290,0,0" Name="textAddressStreet" VerticalAlignment="Top" FontSize="18" /> <TextBox InputScope="AddressStreet" Height="60" HorizontalAlignment="Left" Margin="100,275,0,0" Name="txtAddressStreet" Text="" VerticalAlignment="Top" Width="350" />
<TextBlock Text="Telephone" Height="30" HorizontalAlignment="Left" Margin="10,345,0,0" Name="textTelephone" VerticalAlignment="Top" FontSize="18" /> <TextBox InputScope="TelephoneNumber" Height="60" HorizontalAlignment="Left" Margin="100,330,0,0" Name="txtTelephone" Text="" VerticalAlignment="Top" Width="350" />
<TextBlock Text="Currency" Height="30" HorizontalAlignment="Left" Margin="10,400,0,0" Name="textCurrency" VerticalAlignment="Top" FontSize="18" /> <TextBox InputScope="CurrencyAmount" Height="60" HorizontalAlignment="Left" Margin="100,385,0,0" Name="txtCurrency" Text="" VerticalAlignment="Top" Width="350" />
<TextBlock Text="Maps" Height="30" HorizontalAlignment="Left" Margin="10,455,0,0" Name="textMaps" VerticalAlignment="Top" FontSize="18" /> <TextBox InputScope="Maps" Height="60" HorizontalAlignment="Left" Margin="100,440,0,0" Name="txtMaps" Text="" VerticalAlignment="Top" Width="350" />
<TextBlock Text="Formula" Height="30" HorizontalAlignment="Left" Margin="10,510,0,0" Name="textFormula" VerticalAlignment="Top" FontSize="18" /> <TextBox InputScope="Formula" Height="60" HorizontalAlignment="Left" Margin="100,495,0,0" Name="txtFormula" Text="" VerticalAlignment="Top" Width="350" /> </Grid>
Now run the application and we will evaluate the various on-screen keyboard input available in Windows Phone - 7.
Default inputscope provides auto-complete and emoticon menu

Chat inputscope includes emoticon and auto-complete.

Email inputscope includes .com and @ and holding the key .com key provides option of .org, .net, .edu and .com
URL inputscope includes .com and like Email input scope holding .com key provides option of .org, .net, .edu and .com and pressing the period key provides options of -, +, &, ", :, ., /.
NameorPhoneNumber inputscope provides alphabet to enter name and on pressing of 123 provides telephone number keyboard which has been shown later in this article.
Address contains number and symbols.

TelephoneNumber inputscope provides the telephone keypad. Holding the period key brings addition options , ( ) X .
Currency inputscope contains numbers and decimal points. Holding period key provides addition option of . , -
Maps inputscope includes autocomplete like chat. Holding period key provides additional option of - ! : ? .
Formula inputscope provides auto-complete option of alphabets. It also provide option of numeric. Holding equal key provides additional options of ( = ) : < >
This ends the article of On-Screen keyboard option in Windows Phone 7.
|