摘要: 什么是VSM(Visual State Manager)? 大家可以参加jv9的这两篇博客: Expression Blend实例中文教程(11) - 视觉管理器快速入门Visual State Manager(VSM) Expression Blend实例中文教程(12) - 样式和模板快速入门Style,Template 本文是讲如何在VSM中新增自定义的状态分组.为什么要新增分组呢?默认的不是很全了嘛,有些人可能会这样问。 在WPF/Silverlight中,以button为例,会将一些互相排斥(即不会同时发生)的State分到同一组里面,如Focus和UnFocus都归于FocusStates组,而Pressed、Normal、Disabled和MouseOver都归于CommonStates,那么不同组之间的状态可以同时发生么,当然是肯定的。因为 阅读全文
posted @ 2011-04-17 20:09 Alexis 阅读(2243) 评论(5) 推荐(5) 编辑
摘要: 1.Windows Phone 7 中常见的使用WebClient代码段: WebClient twitter = new WebClient(); twitter.DownloadStringCompleted += new DownloadStringCompletedEventHandler(twitter_DownloadStringCompleted); twitter.DownloadStringAsync(new Uri("http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=" + TwitterNameBox.Text)); 2. 在Windows Phone 7 程序Deactivated的时候,我们需要处理程序的持久化数据和瞬态数据。 阅读全文
posted @ 2011-04-17 10:16 Alexis 阅读(1976) 评论(9) 推荐(2) 编辑