
Para activar el teclado numérico en Windows Phone 7, debes realizar lo siguiente:
en tu archivo .xaml dentro del tag <Phone/> ingresa Loaded=”PhoneApplicationPage_Loaded”
<phone:PhoneApplicationPage x:Class="Utilidades.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768" FontFamily="{StaticResource PhoneFontFamilyNormal}" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}" SupportedOrientations="Portrait" Orientation="Portrait" shell:SystemTray.IsVisible="True" Title="Utilidades" Loaded="PhoneApplicationPage_Loaded">
y en el archivo .cs agregar
private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) { var numericScope = new InputScope(); var numericScopeName = new InputScopeName(); numericScopeName.NameValue = InputScopeNameValue. العب بلاك جاك اون لاين Number; numericScope.Names.Add(numericScopeName); [Nombre del input].InputScope = numericScope; }
Además, puedes ver otros tipos de teclados cambiando en
numericScopeName.NameValue = InputScopeNameValue.{valor};
por ejemplo, para
Url
numericScopeName.NameValue = InputScopeNameValue.Url;
Correo
numericScopeName.NameValue = InputScopeNameValue.EmailSmtpAddress;
La Lista completa la puedes revisar directo en la documentación de MSDN por acá