add example code, which is from link: http://www.silverlightchina.net/html/study/WPF/2010/0921/1958.html