随笔分类 -  mobile

 
聊天页面的简单实现
摘要:QQ和IM+都有自己的聊天页面,对于Android, Windows Phone写自己User Control更加简单。两个DataTemplates, 一个Template selector。 public class MessageBox : ContentControl { /// <summary> /// The DataTemplate to use when Message.Side == Side.ME /// </summary> public DataTemplate MeTemplate { get; set;... 阅读全文
posted @ 2012-03-14 00:03 chongf 阅读(1952) 评论(0) 推荐(3)
regex
摘要:1. remove the blank line2. remove the remaining spaces in the end of paragraph 阅读全文
posted @ 2011-08-23 22:58 chongf