随笔分类 -  Windows Phone

摘要:每次坐火车都想靠着窗户坐,看看风景人也舒服些,在网上找了下座位计算的方法,就做了一个小应用注:不包括高铁和动车计算的代码:View Code 1 int Num; 2 if (int.TryParse(this.phoneTextBox_Num.Text.ToString(), out Num)) 3 { 4 Debug.WriteLine(Num.ToString()); 5 if (Num > 0 && Num <= 118) 6 ... 阅读全文
posted @ 2011-11-20 09:28 十年一刻·i 阅读(881) 评论(4) 推荐(0) 编辑
摘要:首先建立一个Song.cs,用于保存歌曲信息View Code 1 using System; 2 using System.Net; 3 using System.Windows; 4 using System.Windows.Controls; 5 using System.Windows.Documents; 6 using System.Windows.Ink; 7 using System.Windows.Input; 8 using System.Windows.Media; 9 using System.Windows.Media.Animation;10 using Syst. 阅读全文
posted @ 2011-11-10 15:14 十年一刻·i 阅读(736) 评论(6) 推荐(1) 编辑
摘要:Push Notification简介目前,Windows Phone支持三种Push Notification方式:Toast Notifications、Tile Notifications和Raw Notifications,我不想翻译成中文名字了,因为“吐司”之类的翻译无法帮助理解。Toast Notifications,当我们的程序没有运行时,我们希望有一种形式可以通知用户,并且让用户调用对应的应用,就像收到SMS时,调用Messaging程序一样。运行效果如下图,当用户点击Toast时,可以调用对应的程序。Tile Notifications,用于更新启动界面上的Tile,可以通过 阅读全文
posted @ 2011-11-08 11:35 十年一刻·i 阅读(839) 评论(0) 推荐(0) 编辑
摘要:代码 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Net; 5 using System.Windows; 6 using System.Windows.Controls; 7 using System.Windows.Documents; 8 using System.Windows.Input; 9 using System.Windows.Media; 10 using System.Windows.Media.Animation; 11 ... 阅读全文
posted @ 2011-11-07 11:35 十年一刻·i 阅读(1061) 评论(7) 推荐(1) 编辑
摘要:刚开始做,然后今天又一瞄坛子里有人已经发了一个类似的,呵呵,看来初学者都喜欢做这种应用了。。先看图,有图有真相本来想用Hubtile做的,但是样式更改起来好麻烦,就干脆自己写了一个自定义控件。比较简单,可以在面板里直接预览3天的温度信息。还没做完,目前就实现了添加城市,然后读取城市的天气信息。再准备加上定时更新天气预报信息的功能,在首页显示首选城市的天气信息。数据全部是以模板的方式绑定的,显示天气的方块需要绑定数据,之前是动态绑定的,后来换成模板绑定的,但运行就报错,查了下资料,需要注册这个属性。注册属性的方法。 1 ///<summary> 2 /// 天气信息 3 ///< 阅读全文
posted @ 2011-10-27 11:57 十年一刻·i 阅读(726) 评论(4) 推荐(1) 编辑
摘要:貌似还没认证吧。也没发布。怎么来的崩溃? 阅读全文
posted @ 2011-10-27 08:47 十年一刻·i 阅读(344) 评论(3) 推荐(0) 编辑
摘要:效果图: 创建数据库:View Code 1 using System; 2 using System.Net; 3 using System.Windows; 4 using System.Windows.Controls; 5 using System.Windows.Documents; 6 using System.Windows.Ink; 7 using System.Windows.Input; 8 using System.Windows.Media; 9 using System.Windows.Media.Animation;10 using System.Windows.. 阅读全文
posted @ 2011-10-21 16:19 十年一刻·i 阅读(900) 评论(8) 推荐(2) 编辑
摘要:今天上班比较闲,看到园子里有人发了HubTile参考了下,就做了一个豆瓣的FM应用豆瓣的API可以在百度里查一下。整个应用很简单,无非是解析豆瓣的JSON数据,然后读取,下载图片和歌单MediaElement 能否控制进度?暂停再播放就从头开始了..求解。。另外谁告诉我怎么上传应用到市场??? 阅读全文
posted @ 2011-10-19 16:24 十年一刻·i 阅读(810) 评论(9) 推荐(0) 编辑
摘要:界面果然不给力....熟悉了一下这种新的界面设计方式..搞Asp.net/winform 的伤不起啊...windows phone太诱人了。。 阅读全文
posted @ 2011-10-18 14:52 十年一刻·i 阅读(215) 评论(1) 推荐(0) 编辑
摘要:mainpage.xamlView Code 1 <phone:PhoneApplicationPage 2 x:Class="PhoneApp2.MainPage" 3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 5 xmlns:phone="clr-namespace:Microsoft.Phone.Controls 阅读全文
posted @ 2011-10-12 10:06 十年一刻·i 阅读(1000) 评论(7) 推荐(2) 编辑
摘要:基础的控件里面都在里面了    阅读全文
posted @ 2011-10-11 12:27 十年一刻·i 阅读(1198) 评论(0) 推荐(0) 编辑
摘要:toggleSwitch控件为SilverlightforWindowsPhoneToolkit控件包中的开关控件。其Xaml代码为:View Code 1 <Grid x:Name="LayoutRoot" Background="Transparent">2 <Grid.RowDefinitions>3 <RowDefinition Height="Auto"/>4 <RowDefinition Height="*"/>5 </Grid.RowDefinit 阅读全文
posted @ 2011-10-10 21:40 十年一刻·i 阅读(516) 评论(0) 推荐(2) 编辑
摘要:Silverlight Toolkit 是一套codeplex上的很好的代码库,它里面包含了很多常用的但是Silverlight本身并不包含的控件、文档等内容。现在Silverlight Toolkit又专门推出了针对Windows Phone 7开发的Silverlight for Windows Phone Toolkit。 这套Toolkit使用MS-PL授权协议.在http://silverlight.codeplex.com/官网下载Silverlight for Windows Phone Toolkit.msi文件安装成后,可以在VS2010的工具栏中,加载:C:\Program 阅读全文
posted @ 2011-10-10 21:37 十年一刻·i 阅读(257) 评论(0) 推荐(0) 编辑
摘要:    阅读全文
posted @ 2011-10-10 17:05 十年一刻·i 阅读(413) 评论(0) 推荐(0) 编辑
摘要:    阅读全文
posted @ 2011-10-10 16:41 十年一刻·i 阅读(603) 评论(5) 推荐(3) 编辑