摘要: public static string GetDeviceID() { string id = ""; var token = Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken(null); IBuffer buffer = token.Id; using (var dataReader = DataReader.FromBuffer(buffer)) { var bytes = new byte[buffer.Length]; dataReader.ReadBytes(bytes) 阅读全文
posted @ 2012-11-12 12:52 @WP7@ 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 我在界面加了一个TextBox<TextBox x:Name="test" KeyDown="test_KeyDown" InputScope="TelephoneNumber" Height="79" HorizontalAlignment="Left" Margin="103,206,0,0" Text="TextBox" VerticalAlignment="Top" Width="239" /> 阅读全文
posted @ 2012-04-20 11:22 @WP7@ 阅读(308) 评论(1) 推荐(1) 编辑
摘要: 在博客园看到很多人写怎么退出windows phone的应用,其实windows phone的程序是不需要退出的.但是有些童鞋需要,而且不遗余力的研究这个问题。之前得一些方法总结下都属于外门邪道啊!以下这个方法才是正道 public static void GoMainPageWithBack(NavigationService NavigationService,string MainpageURL) { while (NavigationService.CanGoBack) { IEnumerator<JournalEntry> list = NavigationService 阅读全文
posted @ 2012-04-01 16:49 @WP7@ 阅读(2227) 评论(12) 推荐(5) 编辑
摘要: RichTextBox 大家都熟悉了,可以用Hyperlink来加超链接。 如下的代码就可以实现超链接。<RichTextBox IsReadOnly="True"> <Paragraph> Displaying text with <Hyperlink NavigateUri="http://www.sohu.com">hyperlink</Hyperlink> . </Paragraph> </RichTextBox>但是在windows phone中如果链接是外部的网址会导航失 阅读全文
posted @ 2011-09-03 16:06 @WP7@ 阅读(1734) 评论(2) 推荐(2) 编辑
摘要: 前几天解锁手机的时候就遇到过zune连接不上,今天把程序在真机上调试的时候又提示zune没有办法连接. 哈哈,还是用这个工具吧,WPConnect.exe。大家会问这个程序在那里!就在你的电脑。C:\Program Files\Microsoft SDKs\Windows Phone\v7.0\Tools\WPConnect。盘符随你SDK安装目录变化。 调试的时候首先运行 WPConnect.exe,等它的对话框消失后就可以debug了,vs2010debug2008差不多,大家都懂!就不累述了。 如果编译好的xap文件想部署到手机使用Application Deployment工具提示 . 阅读全文
posted @ 2011-05-18 14:59 @WP7@ 阅读(2601) 评论(0) 推荐(1) 编辑
摘要: 【以下都是自己学习中发现的一些问题,如有任何问题请指正】 我相信做过windows mobile开发的都知道,自己的程序都要去建立连接的,尤其是在一些要使用wap网关的时候,我们都要在程序中建立连接。那么WP7是否还需要了? 答案当然是不需要了。 When Windows Phone starts, it can take up to 20 seconds for the first call to the M:System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable to return. This is beca 阅读全文
posted @ 2011-05-04 15:42 @WP7@ 阅读(711) 评论(3) 推荐(1) 编辑