2012年11月9日

windows 8 解析xml的 两种方式

摘要: windows 8上解析 xml 和 win phone 比较类似先联网获取以字符串的形式 获取一个 xml 的 string Uri i = new Uri("http@#¥%#¥%#¥%@¥#%#¥4"); HttpClient client = new HttpClient(); HttpResponseMessage response = await client.GetAsync(i); response.EnsureSuccessStatusCode(); // Stream stream = await response.Content.ReadAsStrea 阅读全文

posted @ 2012-11-09 17:55 Top@Gragon 阅读(617) 评论(0) 推荐(0) 编辑

windows 8 获取用户账号信息

摘要: using Windows.UI.Xaml.Media.Imaging;using Windows.System.UserProfile;string.IsNullOrEmpty(lastName)获取第一名称 string firstName = await UserInformation.GetFirstNameAsync();获取用户第二名称 string lastName = await UserInformation.GetLastNameAsync();获取用户 string displayName = await UserInformation.GetDisplayNameAsy 阅读全文

posted @ 2012-11-09 17:16 Top@Gragon 阅读(201) 评论(0) 推荐(0) 编辑

windows 8 httpclient 联网方式

摘要: 基本技术点 自己记录用于复习开头顺便记下 解析 xml的 正则表达式 XElement element = XElement.Parse(s); OutputList.ItemsSource = (from c in element.Elements("item") select c.Attribute("name").Value );很简单 from 和select 语句 很方便windows 8 中 使用 httpclient 代替 windows phone 中的 httpwebclient , 使用方法 也有些不同 。下面是windows 8种使 阅读全文

posted @ 2012-11-09 16:51 Top@Gragon 阅读(699) 评论(0) 推荐(0) 编辑

导航