聊天页面的简单实现
摘要: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;...
阅读全文
regex
摘要:1. remove the blank line2. remove the remaining spaces in the end of paragraph
阅读全文