wp8 入门到精通 输入框

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

http://dotnetspeaks.com/DisplayArticle.aspx?ID=155

wp8 入门到精通 输入框,布布扣,bubuko.com

时间: 2024-08-28 08:40:32

wp8 入门到精通 输入框的相关文章

wp8 入门到精通 测量代码执行时间

Stopwatch time = new Stopwatch(); byte[] target = new byte[size]; for (int j = 0; j < size; j++) target[j] = unchecked((byte)j); //Otherwise parts of the array are optimised out. CCMD5Core.GetHash(target); time.Start(); for (int i = 1; i <= iteratio

wp8 入门到精通 Utilities类 本地存储+异步

public class CCSetting { public async static void AddOrUpdateValue<T>(string key, T value) { try { if (key != null) { StorageFolder floder = ApplicationData.Current.LocalFolder; if (!(await floder.GetFoldersAsync()).Any(a => a.Name == "DrieS

wp8 入门到精通 高仿微信发信息 键盘不消失

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <StackPanel Orientation="Vertical"> <TextBlock Text="Hides soft keyboard on enter:" /> <TextBox x:Name="textBox"

wp8 入门到精通 启动系统分享照片任务

PhotoChooserTask photoChooserTask = new PhotoChooserTask(); photoChooserTask.Completed += photoChooserTask_Completed; photoChooserTask.ShowCamera = true; photoChooserTask.Show(); void photoChooserTask_Completed(object sender, PhotoResult e) { if (e.T

wp8 入门到精通 ---转换

/// <summary>        /// 颜色字符串转Color        /// </summary>        public static Color ConvertFromString(string argb)        {            uint result;            if (uint.TryParse(argb.TrimStart('#', '0'), NumberStyles.HexNumber, null, out resu

wp8 入门到精通 MultiMsgPrompt

List<NotifyMsg> arraymsg = new List<NotifyMsg>(); List<NotifyInfo> ArrayNotifyInfo = new List<NotifyInfo>() { new NotifyInfo(){title="[收信宝]开通失败",content="您的[收信宝]服务未能开通,请重试或联系客服确认订单.{失败原因:失败原因,新快捷支付:支付失败,请重新支付,或联系客服确认

wp8 入门到精通 ImageCompress 图片压缩

//实例化选择器 PhotoChooserTask photoChooserTask = new PhotoChooserTask(); BitmapImage bimg; int newPixelWidth; int newPixelHeight; //构造函数里 //从页面读取输入值作为目标分辨率 newPixelHeight = int.Parse(textBox2.Text.ToString()); //从页面读取输入值作为目标分辨率 newPixelHeight = int.Parse

wp8 入门到精通 Gallery

<Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.Resources> <Style TargetType="Image"> <Setter Property="Margin" Value="-12,-36,0,0"/> </Style> </Grid.Resources>

wp8 入门到精通 定时更新瓷贴

public class ScheduledAgent : ScheduledTaskAgent { static ScheduledAgent() { Deployment.Current.Dispatcher.BeginInvoke(delegate { Application.Current.UnhandledException += UnhandledException; }); } private static void UnhandledException(object sender